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

Pranav Kant pranavk at collabora.co.uk
Thu Dec 15 08:19:22 UTC 2016


 loleaflet/src/map/Map.js |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 1b690898f90643407d39d5e65f280764a0b0319d
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Dec 15 13:42:45 2016 +0530

    Clicking on content layer now also activates the map
    
    Change-Id: Idd9343ab58e83ee1a710e82c649f2876c8b225bd

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 784ded6..71d2ee3 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -792,13 +792,8 @@ L.Map = L.Evented.extend({
 			vex: options
 		});
 
-		options.$vexOverlay.bind('click.vex', function(e) {
+		options.$vex.bind('click.vex', function(e) {
 			// console.log('click.vex function');
-			if (e.target !== this) {
-				// console.log('  early return');
-				return 0;
-			}
-			// console.log('  calling _activate');
 			return map._activate();
 		});
 		options.$vex.append(options.$vexOverlay);


More information about the Libreoffice-commits mailing list