Reversed up/down arrow pan direction. Some noted the inverted style is not expected.

This commit is contained in:
Eric Martinez 2012-05-04 22:19:48 -06:00
parent 4fa5918956
commit aaa0721073

View File

@ -59,13 +59,13 @@ L.Map.Keyboard = L.Handler.extend({
// Down
for (i = 0; i < this._downKeys.length; i++) {
keyCode = this._downKeys[i];
panKeys[keyCode] = new L.Point(0, -1 * pan);
panKeys[keyCode] = new L.Point(0, pan);
}
// Up
for (i = 0; i < this._upKeys.length; i++) {
keyCode = this._upKeys[i];
panKeys[keyCode] = new L.Point(0, pan);
panKeys[keyCode] = new L.Point(0, -1 * pan);
}
this.panKeys = panKeys;