projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make redirect URI also work if index.html is called specifically
[lantea.git]
/
js
/
map.js
diff --git
a/js/map.js
b/js/map.js
index d1f6b03c93cc7e4164f4cc671c7702fa9617d415..b63aea5fe1272ffd773cc4464cc02781765b6e4b 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-861,12
+861,12
@@
var mapEvHandler = {
// Bail out if the started touch can't be found.
if (touchEvent && gDragging &&
// Bail out if the started touch can't be found.
if (touchEvent && gDragging &&
- !aEvent.
changedTouches.identifiedTouch(gDragTouchID
))
+ !aEvent.
targetTouches.item(0
))
return;
}
var coordObj = touchEvent ?
return;
}
var coordObj = touchEvent ?
- aEvent.
changedTouches.identifiedTouch(gDragTouchID
) :
+ aEvent.
targetTouches.item(0
) :
aEvent;
switch (aEvent.type) {
aEvent;
switch (aEvent.type) {
@@
-881,8
+881,7
@@
var mapEvHandler = {
aEvent.targetTouches.item(0).clientY, 2)
);
}
aEvent.targetTouches.item(0).clientY, 2)
);
}
- gDragTouchID = aEvent.changedTouches.item(0).identifier;
- coordObj = aEvent.changedTouches.identifiedTouch(gDragTouchID);
+ coordObj = aEvent.targetTouches.item(0);
}
var x = coordObj.clientX - gGLMapCanvas.offsetLeft;
var y = coordObj.clientY - gGLMapCanvas.offsetTop;
}
var x = coordObj.clientX - gGLMapCanvas.offsetLeft;
var y = coordObj.clientY - gGLMapCanvas.offsetTop;