fix pan controls
This commit is contained in:
parent
e274d88c2b
commit
3c482989d1
1 changed files with 2 additions and 1 deletions
|
|
@ -1153,7 +1153,8 @@ Ox.Map = function(options, self) {
|
|||
}
|
||||
|
||||
function pan(x, y) {
|
||||
self.map.panBy(x * self.$map.width() / 2, y * self.$map.height() / 2);
|
||||
console.log(x, y, self.$map.width())
|
||||
self.map.panBy([x * self.$map.width() / 2, y * self.$map.height() / 2]);
|
||||
};
|
||||
|
||||
function panToPlace() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue