projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to use stopPropagation to make sure touch events aren't handled by the browser...
[lantea.git]
/
js
/
map.js
diff --git
a/js/map.js
b/js/map.js
index 5c93ae5741dbf71885253461fbe3e7b6e2a4cd32..361420b7e1e91088f204f932d678d6d0bf5e911d 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-462,6
+462,10
@@
var mapEvHandler = {
handleEvent: function(aEvent) {
var touchEvent = aEvent.type.indexOf('touch') != -1;
handleEvent: function(aEvent) {
var touchEvent = aEvent.type.indexOf('touch') != -1;
+ if (touchEvent) {
+ aEvent.stopPropagation();
+ }
+
// Bail out if the event is happening on an input.
if (aEvent.target.tagName.toLowerCase() == "input")
return;
// Bail out if the event is happening on an input.
if (aEvent.target.tagName.toLowerCase() == "input")
return;