The following commit has been merged in the master branch:
commit 8248c6b1d0f7f739d45c9e800c8ae16e1d7d4f6a
Author: Vladimir Agafonkin <agafon...@gmail.com>
Date:   Thu Jul 25 12:49:16 2013 +0300

    fix map scrolling right on click with horizontal scroll on page, close #1901

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();
 

-- 
JavaScript library for displaying map data in web browsers

_______________________________________________
Pkg-osm-commits mailing list
Pkg-osm-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-commits

Reply via email to