[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 26 12:44:02 UTC 2019


 loleaflet/src/control/Control.LokDialog.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 397249b9f3c41bc506ac116283aa34a1e5fdd883
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Tue Mar 26 21:02:01 2019 +0900
Commit:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
CommitDate: Tue Mar 26 21:16:07 2019 +0900

    allow to pan outside of widget bounds
    
    Always pass firstTouchPosition{X,Y} instead of current X,Y
    position to _postWindowGestureEvent so that panning is continued
    even when you go out of widget (combobox) bounds.
    
    Change-Id: I769b013f933881d8d1294ffd094e1cf7871cb701

diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 68216fb1f..23186e681 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -687,14 +687,14 @@ L.Control.LokDialog = L.Control.extend({
 			}
 			else if (e.type === 'touchend')
 			{
-				this._postWindowGestureEvent(childId, 'panEnd', touchX, touchY, touchY - firstTouchPositionY);
+				this._postWindowGestureEvent(childId, 'panEnd', firstTouchPositionX, firstTouchPositionY, touchY - firstTouchPositionY);
 				firstTouchPositionX = null;
 				firstTouchPositionY = null;
 
 			}
 			else if (e.type === 'touchmove')
 			{
-				this._postWindowGestureEvent(childId, 'panUpdate', touchX, touchY, touchY - firstTouchPositionY);
+				this._postWindowGestureEvent(childId, 'panUpdate', firstTouchPositionX, firstTouchPositionY, touchY - firstTouchPositionY);
 			}
 		}, this);
 


More information about the Libreoffice-commits mailing list