Skip to content

Commit 95580a5

Browse files
committed
fixed passive scroll listener for sidenav
1 parent ce656a6 commit 95580a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/sidenav.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@
129129
this._handleCloseReleaseBound = this._handleCloseRelease.bind(this);
130130
this._handleCloseTriggerClickBound = this._handleCloseTriggerClick.bind(this);
131131

132-
this.dragTarget.addEventListener('touchmove', this._handleDragTargetDragBound);
132+
this.dragTarget.addEventListener('touchmove', this._handleDragTargetDragBound, { passive: true});
133133
this.dragTarget.addEventListener('touchend', this._handleDragTargetReleaseBound);
134-
this._overlay.addEventListener('touchmove', this._handleCloseDragBound);
134+
this._overlay.addEventListener('touchmove', this._handleCloseDragBound, { passive: true});
135135
this._overlay.addEventListener('touchend', this._handleCloseReleaseBound);
136-
this.el.addEventListener('touchmove', this._handleCloseDragBound);
136+
this.el.addEventListener('touchmove', this._handleCloseDragBound, { passive: true});
137137
this.el.addEventListener('touchend', this._handleCloseReleaseBound);
138138
this.el.addEventListener('click', this._handleCloseTriggerClickBound);
139139

0 commit comments

Comments
 (0)