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 6ca3e2a commit 082e16c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 })
}, { passive: false });

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

this.el.addEventListener('cocreate-selectmodal', function(e) {
if (_this.selectedModal) {
Expand Down Expand Up @@ -109,7 +109,7 @@ ModalContainer.prototype = {
_this._resizeProcess(_this.width, _this.height, contentRect.width, contentRect.height);
})

ro.observe(this.el)
ro.observe(this.el);
},

_resizeProcess(prevWidth, prevHeight, width, height) {
Expand Down

0 comments on commit 082e16c

Please sign in to comment.