Skip to content

Commit

Permalink
fix passive event handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Aug 18, 2021
1 parent 102ef42 commit 6ca3e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ ModalContainer.prototype = {
if (_this.selectedModal) {
_this.selectedModal._onMove(e.touches[0]);
}
})
}, { passive: false })

this.el.addEventListener('touchend', function(e) {
// e.preventDefault();
if (_this.selectedModal) {
_this.selectedModal._onUp(e.touches[0]);
}
})
}, { passive: false })

this.el.addEventListener('cocreate-selectmodal', function(e) {
if (_this.selectedModal) {
Expand Down

0 comments on commit 6ca3e2a

Please sign in to comment.