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

Dennis Francis (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 12 08:34:45 UTC 2020


 loleaflet/src/layer/vector/SplitPanesSVG.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c03c8c75318b2ab5a401fdb0f494cc90f8b503e6
Author:     Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Fri Aug 7 21:24:00 2020 +0530
Commit:     Dennis Francis <dennis.francis at collabora.com>
CommitDate: Wed Aug 12 10:34:25 2020 +0200

    split-panes: update svg container position and viewbox on 'drag'...
    
    so that they do not get out of sync with the canvas on mobile/tablet
    swipe/pan.
    
    Note: This does not update the contents(path nodes) of the svg's.  Note:
    In the long term we can get rid of the map-pane scrolling and avoid all
    this but right now only Calc is using canvas based tile layer.
    
    Change-Id: Iaf6894b0fc39a2a32ac19d0e9acd6abb14336785
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100487
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Dennis Francis <dennis.francis at collabora.com>

diff --git a/loleaflet/src/layer/vector/SplitPanesSVG.js b/loleaflet/src/layer/vector/SplitPanesSVG.js
index d114c5cb2..20f350b7a 100644
--- a/loleaflet/src/layer/vector/SplitPanesSVG.js
+++ b/loleaflet/src/layer/vector/SplitPanesSVG.js
@@ -140,7 +140,8 @@ L.SplitPanesSVG = L.SplitPanesRenderer.extend({
 
 	getEvents: function () {
 		var events = {
-			splitposchanged: this._update
+			splitposchanged: this._update,
+			drag: this._update,
 		};
 
 		return events;


More information about the Libreoffice-commits mailing list