From 0a0e1f7e28bcaae0f0fe058c9aa395e3cb581aea Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Tue, 21 Jul 2020 22:23:44 +0530 Subject: [PATCH] split-panes: disable zoom-animation for splitter controls For the zoom-animation of overlay elements the algorithm does not seem to use the correct start/end positions for building the trajectory. In particular the splitter control animation looks really awkward. Lets disable this for now till the animation issue is fixed. Change-Id: Ic67ccc3df1172853e4b946795dc6c8becb3ad00b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99358 Tested-by: Jenkins CollaboraOffice Tested-by: Jenkins Reviewed-by: Dennis Francis --- loleaflet/src/layer/vector/Renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loleaflet/src/layer/vector/Renderer.js b/loleaflet/src/layer/vector/Renderer.js index 85ab7bccb..a62b8e1d9 100644 --- a/loleaflet/src/layer/vector/Renderer.js +++ b/loleaflet/src/layer/vector/Renderer.js @@ -26,7 +26,7 @@ L.Renderer = L.Layer.extend({ if (!this._container) { this._initContainer(); // defined by renderer implementations - if (this._zoomAnimated) { + if (this._zoomAnimated && this.rendererId !== 'fixed') { L.DomUtil.addClass(this._container, 'leaflet-zoom-animated'); } } @@ -49,7 +49,7 @@ L.Renderer = L.Layer.extend({ var events = { moveend: this._update }; - if (this._zoomAnimated) { + if (this._zoomAnimated && this.rendererId !== 'fixed') { events.zoomanim = this._animateZoom; } return events;