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>
This commit is contained in:
Tor Lillqvist 2020-01-15 17:20:11 +02:00
parent e03c81a976
commit a7250d1d3f

View file

@ -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,