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:
parent
e03c81a976
commit
a7250d1d3f
1 changed files with 0 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue