Skip to content

Commit f91d705

Browse files
committed
Set hammer instance to null after destroying so consumers know not to call it
1 parent 6ba125b commit f91d705

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addon/components/scroll-view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ class ScrollView extends Component {
291291
unbindScrollerEvents(element) {
292292
if (this.hammer) {
293293
this.hammer.destroy();
294+
this.hammer = null;
294295
}
295296
element.removeEventListener(
296297
normalizeWheel.getEventType(),

0 commit comments

Comments
 (0)