summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loleaflet/src/map/handler/Map.TouchGesture.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js
index 84258c73e..b7ab8b4d8 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -206,7 +206,7 @@ L.Map.TouchGesture = L.Handler.extend({
if (window.ThisIsTheiOSApp) {
// console.log('==> ' + e.timeStamp);
- if (!this._toolbar._map && this._map._docLayer.containsSelection(latlng)) {
+ if (!this._toolbar._map && (docLayer.containsSelection(latlng) || (docLayer._graphicSelection && docLayer._graphicSelection.contains(latlng)))) {
this._toolbar._pos = containerPoint;
// console.log('==> Adding context toolbar ' + e.timeStamp);
this._toolbar.addTo(this._map);