Commit 6ac783ce739500cc23d21a344615bcf024ab264c
1 parent
8751a49f
Exists in
master
and in
7 other branches
-
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
classesjs/classe_eventos.js
... | ... | @@ -274,6 +274,7 @@ i3GEO.eventos = |
274 | 274 | // console.error(exy.target.id); |
275 | 275 | // console.error(exy.target.style.zIndex); |
276 | 276 | // tenta evitar abrir o balao em objetos do openlayers ou googlemaps |
277 | + alert(exy) | |
277 | 278 | if (!exy) { |
278 | 279 | i3GEO.eventos.executaEventos(this.MOUSEUP); |
279 | 280 | } else { |
... | ... | @@ -534,9 +535,13 @@ i3GEO.eventos = |
534 | 535 | } |
535 | 536 | }; |
536 | 537 | docMapa.ontouchend = function(exy) { |
537 | - if (!i3GEO.eventos.botaoDireita(exy)) { | |
538 | + if (i3GEO.eventos.cliquePerm.status === true) { | |
538 | 539 | i3GEO.eventos.mouseupMapa(exy); |
539 | 540 | } |
541 | + i3GEO.eventos.cliquePerm.status = true; | |
542 | + }; | |
543 | + docMapa.ontouchmove = function(exy) { | |
544 | + i3GEO.eventos.cliquePerm.status = false; | |
540 | 545 | }; |
541 | 546 | }, |
542 | 547 | /** |
... | ... | @@ -649,7 +654,6 @@ i3GEO.eventos = |
649 | 654 | * Executa os eventos definidos em MOUSECLIQUEPERM |
650 | 655 | */ |
651 | 656 | executa : function(evt) { |
652 | - alert("Ois") | |
653 | 657 | if (i3GEO.eventos.cliquePerm.ativo === true && i3GEO.eventos.cliquePerm.status === true) { |
654 | 658 | i3GEO.eventos.executaEventos(i3GEO.eventos.MOUSECLIQUEPERM); |
655 | 659 | } | ... | ... |