summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-01-15 17:20:11 +0200
committerTor Lillqvist <tml@collabora.com>2020-01-15 18:25:17 +0100
commita7250d1d3f3c7ebf2c4bddc9c9e23364e261fbe3 (patch)
tree5bde27cf3f454e61fc0e6462dbe43f48e41c02dc
parente03c81a976a88af2babf869d8e9d9aef69700ace (diff)
Nothing fires 'input.press' events
Such used to be fired by Map, but that was removed some time ago. So kill the attempt to use it on iOS, it must be dead code. Change-Id: Ic4af8394c0f059f4a06a1c6d371890863f250696 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86863 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--loleaflet/src/map/handler/Map.TouchGesture.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js
index 505ee7feb..84258c73e 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -93,8 +93,6 @@ L.Map.TouchGesture = L.Handler.extend({
this._hammer.on('pinchmove', L.bind(this._onPinch, this));
this._hammer.on('pinchend', L.bind(this._onPinchEnd, this));
this._hammer.on('tripletap', L.bind(this._onTripleTap, this));
- if (window.ThisIsTheiOSApp)
- this._map.on('input.press', this._onInputPressiOSOnly, this);
this._map.on('updatepermission', this._onPermission, this);
this._onPermission({perm: this._map._permission});
},
@@ -522,13 +520,6 @@ L.Map.TouchGesture = L.Handler.extend({
}
},
- _onInputPressiOSOnly: function (e) {
- var pos = this._map.latLngToContainerPoint(e);
- this._toolbar.remove();
- this._toolbar._pos = pos;
- this._toolbar.addTo(this._map);
- },
-
_constructFakeEvent: function (evt, type) {
var fakeEvt = {
type: type,