loleaflet/src/map/handler/Map.TouchGesture.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit 4727c4c22b27d336152d31bf4d44849dbeeeda76 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Sun Jun 30 16:07:10 2019 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Tue Aug 20 16:41:06 2019 +0200 loleaflet: mobile: fix e.srcEvent that it does not have clientX and clientY properties in Safari Change-Id: I02531bc370a9768317e7e40480d589a82db7ab89 Reviewed-on: https://gerrit.libreoffice.org/77835 Reviewed-by: Henry Castro <hcas...@collabora.com> Tested-by: Henry Castro <hcas...@collabora.com> diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js index 9398c9f81..a48a316b6 100644 --- a/loleaflet/src/map/handler/Map.TouchGesture.js +++ b/loleaflet/src/map/handler/Map.TouchGesture.js @@ -273,9 +273,9 @@ L.Map.TouchGesture = L.Handler.extend({ } if (this._state === L.Map.TouchGesture.MARKER) { - this._map._fireDOMEvent(this._marker, e.srcEvent, 'mousedown'); + this._map._fireDOMEvent(this._marker, point, 'mousedown'); } else if (this._state === L.Map.TouchGesture.GRAPHIC) { - this._map._docLayer._graphicMarker._onDragStart(e.srcEvent); + this._map._docLayer._graphicMarker._onDragStart(point); } else if (this._state === L.Map.TouchGesture.CURSOR) { this._map._docLayer._postMouseEvent('buttondown', mousePos.x, mousePos.y, 1, 1, 0); } else { @@ -291,9 +291,9 @@ L.Map.TouchGesture = L.Handler.extend({ mousePos = this._map._docLayer._latLngToTwips(latlng); if (this._state === L.Map.TouchGesture.MARKER) { - this._map._fireDOMEvent(this._map, e.srcEvent, 'mousemove'); + this._map._fireDOMEvent(this._map, point, 'mousemove'); } else if (this._state === L.Map.TouchGesture.GRAPHIC) { - this._map._docLayer._graphicMarker._onDrag(e.srcEvent); + this._map._docLayer._graphicMarker._onDrag(point); } else if (this._state === L.Map.TouchGesture.CURSOR) { this._map._docLayer._postMouseEvent('move', mousePos.x, mousePos.y, 1, 1, 0); } else { @@ -309,9 +309,9 @@ L.Map.TouchGesture = L.Handler.extend({ mousePos = this._map._docLayer._latLngToTwips(latlng); if (this._state === L.Map.TouchGesture.MARKER) { - this._map._fireDOMEvent(this._map, e.srcEvent, 'mouseup'); + this._map._fireDOMEvent(this._map, point, 'mouseup'); } else if (this._state === L.Map.TouchGesture.GRAPHIC) { - this._map._docLayer._graphicMarker._onDragEnd(e.srcEvent); + this._map._docLayer._graphicMarker._onDragEnd(point); } else if (this._state === L.Map.TouchGesture.CURSOR) { this._map._docLayer._postMouseEvent('buttonup', mousePos.x, mousePos.y, 1, 1, 0); } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits