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

New commits:
commit 310db08d0a7b25f5897af2b483d03d863924495a
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Fri Sep 25 19:02:22 2020 +0530
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Wed Sep 30 14:20:14 2020 +0200

    leaflet: stop chaging mouse cursor when new view opend
    
    Problem:
    Open a spreadsheet in two views at the same time
    In the view opened the first, mouse pointer changes to caret placement icon.
    
    Change-Id: I33db0dbff4bd6229615d75892c7d1c23c9f39e7c
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103339
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/layer/marker/Cursor.js 
b/loleaflet/src/layer/marker/Cursor.js
index 348356fc1..a164e3f9f 100644
--- a/loleaflet/src/layer/marker/Cursor.js
+++ b/loleaflet/src/layer/marker/Cursor.js
@@ -23,7 +23,8 @@ L.Cursor = L.Layer.extend({
                if (!this._container) {
                        this._initLayout();
                }
-               $('.leaflet-pane.leaflet-map-pane').css('cursor', 'text');
+               if (this._container.querySelector('.blinking-cursor') !== null)
+                       $('.leaflet-pane.leaflet-map-pane').css('cursor', 
'text');
                this._zoomAnimated = this._zoomAnimated && 
this.options.zoomAnimation;
                if (this._zoomAnimated) {
                        L.DomUtil.addClass(this._container, 
'leaflet-zoom-animated');
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to