Skip to content

Commit 5211251

Browse files
authored
Merge pull request #684 from lgeiger/atom-utils-passive-listeners
2 parents 60bb15e + 7df85b3 commit 5211251

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/minimap-element.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,12 @@ class MinimapElement {
493493
this.minimap.onMouseWheel(e)
494494
}
495495
}
496-
}))
496+
}, { passive: true }))
497497

498498
this.subscriptions.add(this.subscribeTo(this.getFrontCanvas(), {
499499
mousedown: (e) => { this.canvasPressed(this.extractMouseEventData(e)) },
500500
touchstart: (e) => { this.canvasPressed(this.extractTouchEventData(e)) }
501-
}))
501+
}, { passive: true }))
502502
}
503503

504504
/**
@@ -515,7 +515,7 @@ class MinimapElement {
515515
this.visibleAreaSubscription = this.subscribeTo(this.visibleArea, {
516516
mousedown: (e) => { this.startDrag(this.extractMouseEventData(e)) },
517517
touchstart: (e) => { this.startDrag(this.extractTouchEventData(e)) }
518-
})
518+
}, { passive: true })
519519

520520
this.subscriptions.add(this.visibleAreaSubscription)
521521
}

lib/minimap-quick-settings-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class MinimapQuickSettingsElement {
117117

118118
subs.add(this.subscribeTo(this.hiddenInput, {
119119
focusout: (e) => { this.destroy() }
120-
}))
120+
}, { passive: true }))
121121

122122
subs.add(this.subscribeTo(this.onLeftButton, {
123123
mousedown: (e) => {

0 commit comments

Comments
 (0)