aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-06-05 12:23:59 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-06 17:01:56 +0100
commitde36c49d1ff2bf7858c8cc8762c4c7b9d05c9cb3 (patch)
treee873ae9c8db5518e89468a14908d0852bcb5252c /CHANGELOG.md
parentcbf69359d101c0e5ca6058f84674ef04a3c8632e (diff)
Fix pointer event issue selecting pin on map.
On a mobile device that implements pointer events, there are two events that can happen on an /around page – touching the map starts a new report (or goes back to the map if already on a report page); touching a pin pulls in that report’s page. The map touch, which uses an OpenLayers.Handler.Click, operates on click, whereas the pin touch, which uses an OpenLayers.Handler.Feature, operates on touchstart. Neither event cancels the other, which means you can end up either starting a new report, and then it tries to pull in an undefined pin ID report and errors, or the pin report loads and then you instantly go back to the map page. In order to work around this, we disable the map click control when the feature control event starts, and reactivate once the report data has been loaded.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fff0c21a5..9681fbb8c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,8 @@
## Releases
* Unreleased
+ - Bugfixes:
+ - Fix pointer event issue selecting pin on map. #2130
* v2.3.2 (31st May 2018)
- Front end improvements: