loleaflet/src/map/handler/Map.Tap.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 57940acb06846ab8b96104b8bcf7c41f92d7cae8 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Sun Jul 29 14:46:51 2018 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Sun Jul 29 14:50:24 2018 -0400 loleaflet: mobile: check tolerance when the move event occurs Change-Id: I9e1d28e1b198e81f876a323c978478e4ccea7474 diff --git a/loleaflet/src/map/handler/Map.Tap.js b/loleaflet/src/map/handler/Map.Tap.js index b8a4e96a5..02730a7e2 100644 --- a/loleaflet/src/map/handler/Map.Tap.js +++ b/loleaflet/src/map/handler/Map.Tap.js @@ -71,8 +71,11 @@ L.Map.Tap = L.Handler.extend({ _onMove: function (e) { var first = e.touches[0]; - this._newPos = new L.Point(first.clientX, first.clientY); - this._simulateEvent('mousemove', first); + var newPos = new L.Point(first.clientX, first.clientY); + if (newPos.distanceTo(this._startPos) > this._map.options.tapTolerance) { + this._newPos = newPos; + this._simulateEvent('mousemove', first); + } }, _simulateEvent: function (type, e) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits