loleaflet/src/control/Control.Scroll.js | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 01f152ad98d9229a4357f924ee068ea8d039a741 Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Fri Feb 28 21:54:59 2020 +0530 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Tue Mar 17 23:30:39 2020 +0100 Let Hammer for scroll-container listen for 'swipe' too and delegate it to L.Map.TouchGesture's swipe handlers which does 'ergonomic' scrolling (added in 7338e3d8185170dbedcc3b40a15c4a6adcc47ef1). With this we get better/smoother swipe response when the swipe starts at the right edge of the sheet (where the scroll widgets are). This is a follow-up improvement of : commit 0ca8e3b63946862dad47163e448fca84741421d2 Author: Dennis Francis <dennis.fran...@collabora.com> Date: Fri Feb 14 18:11:37 2020 +0530 Lets have Hammer pan listeners on scroll-container... Change-Id: Ib5260f540434ae6af649102a1f6d6eae57e4659e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89728 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Henry Castro <hcas...@collabora.com> diff --git a/loleaflet/src/control/Control.Scroll.js b/loleaflet/src/control/Control.Scroll.js index 8988df9ea..650f69ce4 100644 --- a/loleaflet/src/control/Control.Scroll.js +++ b/loleaflet/src/control/Control.Scroll.js @@ -68,6 +68,7 @@ L.Control.Scroll = L.Control.extend({ this._hammer.get('pan').set({ direction: Hammer.DIRECTION_ALL }); + this._hammer.get('swipe').set({ threshold: 5 }); if (L.Browser.touch) { L.DomEvent.on(this._scrollContainer, 'touchmove', L.DomEvent.preventDefault); @@ -77,6 +78,7 @@ L.Control.Scroll = L.Control.extend({ this._hammer.on('panstart', L.bind(mapTouchGesture._onPanStart, mapTouchGesture)); this._hammer.on('pan', L.bind(mapTouchGesture._onPan, mapTouchGesture)); this._hammer.on('panend', L.bind(mapTouchGesture._onPanEnd, mapTouchGesture)); + this._hammer.on('swipe', L.bind(mapTouchGesture._onSwipe, mapTouchGesture)); } }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits