From 8c66c4773dba920e5b95fd8704712796b7fa93ea Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Fri, 14 Apr 2017 18:22:23 +0000
Subject: [PATCH] Fix cursor pointer change on hovering over active element

---
 map.html |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/map.html b/map.html
index adee5e9..fd15e24 100644
--- a/map.html
+++ b/map.html
@@ -140,11 +140,9 @@
 
 	// change mouse cursor when over marker
 	map.on('pointermove', function(e) {
-		var pixel = map.getEventPixel(e.originalEvent);
-		var hit = map.hasFeatureAtPixel(pixel);
-		var target = map.getTarget();
-		if(target.style)
-			target.style.cursor = hit ? 'pointer' : '';
+		var hit = map.hasFeatureAtPixel(e.pixel);
+		var target = map.getTargetElement();
+		target.style.cursor = hit ? 'pointer' : '';
 	});
 }
 

--
Gitblit v1.9.1