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

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 3 22:26:57 UTC 2020


 loleaflet/src/control/Ruler.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d97f8a6bb4540a6c37e8434ea78e51ab94bd12ee
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Fri Jul 31 17:23:49 2020 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Tue Aug 4 00:26:38 2020 +0200

    loleaflet: change event listener to "moveend"
    
    When the pane element translation3D is modifying
    the "moveend" is fired, which is required to compute
    the ruler offset.
    
    Change-Id: I1388b44c041563a504de9a47011bfac2b3138679
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99908
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/control/Ruler.js b/loleaflet/src/control/Ruler.js
index 6ec7c7029..9292cc225 100644
--- a/loleaflet/src/control/Ruler.js
+++ b/loleaflet/src/control/Ruler.js
@@ -26,7 +26,7 @@ L.Control.Ruler = L.Control.extend({
 		map.on('rulerupdate', this._updateOptions, this);
 		map.on('tabstoplistupdate', this._updateTabStops, this);
 		map.on('docsize', this._updatePaintTimer, this);
-		map.on('scrolloffset resize', this._fixOffset, this);
+		map.on('moveend', this._fixOffset, this);
 		map.on('updatepermission', this._changeInteractions, this);
 		L.DomUtil.addClass(map.getContainer(), 'hasruler');
 		this._map = map;


More information about the Libreoffice-commits mailing list