loleaflet/src/map/Map.js |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit e2383db17942ba7324dc4e1a397362bddbf25be4
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Fri Dec 16 23:08:44 2016 +0530

    tdf#106655 loleaflet: Fix cursor dissappearing during document load
    
    Change-Id: I9e301d7d2b6e7d2626de91c242b7617fbc823572
    Reviewed-on: https://gerrit.libreoffice.org/35465
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>
    Tested-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index bc1b2790..cadd3d52 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -823,6 +823,7 @@ L.Map = L.Evented.extend({
        _onLostFocus: function () {
                if (!this._loaded) { return; }
 
+               console.debug('_onLostFocus: ');
                var doclayer = this._docLayer;
                if (!doclayer) { return; }
 
@@ -843,7 +844,9 @@ L.Map = L.Evented.extend({
                if (!this._loaded) { return; }
 
                var doclayer = this._docLayer;
-               if (doclayer) {
+               if (doclayer &&
+                   typeof doclayer._isCursorOverlayVisibleOnLostFocus !== 
'undefined' &&
+                   typeof doclayer._isCursorVisibleOnLostFocus !== 
'undefined') {
                        // we restore the old cursor position by a small delay, 
so that if the user clicks
                        // inside the document we skip to restore it, so that 
the user does not see the cursor
                        // jumping from the old position to the new one
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to