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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 6 14:06:46 UTC 2020


 loleaflet/src/layer/tile/TileLayer.js |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit e86093ccd71defb0a40863206463be7d6160157d
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Apr 6 15:49:50 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Apr 6 16:06:28 2020 +0200

    Revert "leaflet: stoped view jumping when deselecting shapes/images"
    
    This reverts commit aba812fc9f9df12bcf5acc2b8199160a92247624.
    
    Change-Id: I06dab52595ccd8f565e465b1c6be4e4567e16e82
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91756
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 163957670..3d3c86bf1 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -2140,12 +2140,7 @@ L.TileLayer = L.GridLayer.extend({
 		var cursorPos = this._visibleCursor.getNorthWest();
 		var docLayer = this._map._docLayer;
 
-		if (!zoom
-		&& scroll !== false
-		&& !this._map.getBounds().contains(this._visibleCursor)
-		&& this._map._isCursorVisible
-		&& this._map._clip._selectionType === 'text') {
-
+		if (!zoom && scroll !== false && !this._map.getBounds().contains(this._visibleCursor) && this._map._isCursorVisible) {
 			var center = this._map.project(cursorPos);
 			center = center.subtract(this._map.getSize().divideBy(2));
 			center.x = Math.round(center.x < 0 ? 0 : center.x);


More information about the Libreoffice-commits mailing list