Skip to content

Commit

Permalink
passive event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Heusschen committed Jun 12, 2020
1 parent 6e096a4 commit 66b54a4
Show file tree
Hide file tree
Showing 9 changed files with 6,194 additions and 6,194 deletions.
2 changes: 1 addition & 1 deletion dist/mmenu-light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mmenu-light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions esm/modules/offcanvas-drawer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ var MmOffCanvasDrawer = /** @class */ (function () {
evnt.preventDefault();
evnt.stopImmediatePropagation();
};
this.backdrop.addEventListener('touchstart', close);
this.backdrop.addEventListener('mousedown', close);
this.backdrop.addEventListener('touchstart', close, { passive: true });
this.backdrop.addEventListener('mousedown', close, { passive: true });
}
Object.defineProperty(MmOffCanvasDrawer.prototype, "prefix", {
/** Prefix for the class. */
Expand Down
Loading

0 comments on commit 66b54a4

Please sign in to comment.