[Pkg-javascript-commits] [leaflet] 16/301: fix map scrolling right on click with horizontal scroll on page, close #1901

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 8d925b6acbd1da865930ce5666d31a60eb091af4
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Jul 25 12:49:16 2013 +0300

    fix map scrolling right on click with horizontal scroll on page, close #1901
---
 src/map/handler/Map.Keyboard.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/map/handler/Map.Keyboard.js b/src/map/handler/Map.Keyboard.js
index dabbc02..ddf6759 100644
--- a/src/map/handler/Map.Keyboard.js
+++ b/src/map/handler/Map.Keyboard.js
@@ -65,7 +65,7 @@ L.Map.Keyboard = L.Handler.extend({
 		var body = document.body,
 		    docEl = document.documentElement,
 		    top = body.scrollTop || docEl.scrollTop,
-		    left = body.scrollTop || docEl.scrollLeft;
+		    left = body.scrollLeft || docEl.scrollLeft;
 
 		this._map._container.focus();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list