[Libreoffice-commits] online.git: loleaflet/src
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jan 15 17:25:36 UTC 2020
loleaflet/src/map/handler/Map.TouchGesture.js | 9 ---------
1 file changed, 9 deletions(-)
New commits:
commit a7250d1d3f3c7ebf2c4bddc9c9e23364e261fbe3
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Jan 15 17:20:11 2020 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Jan 15 18:25:17 2020 +0100
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 at gmail.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
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,
More information about the Libreoffice-commits
mailing list