loleaflet/src/control/Parts.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2dcd083b64c0b1de0989c1afdd6b9d340af839d4
Author: Mihai Varga <mihai.va...@collabora.com>
Date:   Thu Aug 6 15:41:13 2015 +0300

    loleaflet: cancel the current selection when switching parts
    
    And only invalidate a part of the previous slide.
    For example, when clicking a title in a slide, a rectangle is drawn
    around it. We we switch slides, that rectangle should be gone and
    clicking outside of the slide solves this

diff --git a/loleaflet/src/control/Parts.js b/loleaflet/src/control/Parts.js
index 689ec4a..4171f19 100644
--- a/loleaflet/src/control/Parts.js
+++ b/loleaflet/src/control/Parts.js
@@ -20,6 +20,10 @@ L.Map.include({
                else {
                        return;
                }
+               if (docLayer._isCursorOverlayVisible) {
+                       // a click outside the slide to clear any selection
+                       docLayer.sendMessage('mouse type=buttondown x=-1 y=-1 
count=1');
+               }
                this.fire('updateparts', {
                        currentPart: docLayer._currentPart,
                        parts: docLayer._parts,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to