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

New commits:
commit d97f8a6bb4540a6c37e8434ea78e51ab94bd12ee
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Fri Jul 31 17:23:49 2020 -0400
Commit:     Henry Castro <hcas...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to