Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 05788d2

Browse files
kennethcachiaThomasBurleson
authored andcommitted
fix(gesture): fix conflicts with Ionic Closes #1528
Closes #1528. Closes #2761.
1 parent 5c37dc8 commit 05788d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/core/services/gesture/gesture.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,13 @@
439439
* The only way to know if this click is real is to prevent any normal
440440
* click events, and add a flag to events sent by material so we know not to prevent those.
441441
*
442-
* One exception to click events that should be prevented is click events sent by the
443-
* keyboard (eg form submit).
442+
* Two exceptions to click events that should be prevented are:
443+
* - click events sent by the keyboard (eg form submit)
444+
* - events that originate from an Ionic app
444445
*/
445446
document.addEventListener('click', function clickHijacker(ev) {
446447
var isKeyClick = ev.clientX === 0 && ev.clientY === 0;
447-
if (!isKeyClick && !ev.$material) {
448+
if (!isKeyClick && !ev.$material && !ev.isIonicTap) {
448449
ev.preventDefault();
449450
ev.stopPropagation();
450451
}

0 commit comments

Comments
 (0)