Skip to content

Commit

Permalink
Merge pull request #684 from lgeiger/atom-utils-passive-listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Nov 22, 2020
2 parents 60bb15e + 7df85b3 commit 5211251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ class MinimapElement {
this.minimap.onMouseWheel(e)
}
}
}))
}, { passive: true }))

this.subscriptions.add(this.subscribeTo(this.getFrontCanvas(), {
mousedown: (e) => { this.canvasPressed(this.extractMouseEventData(e)) },
touchstart: (e) => { this.canvasPressed(this.extractTouchEventData(e)) }
}))
}, { passive: true }))
}

/**
Expand All @@ -515,7 +515,7 @@ class MinimapElement {
this.visibleAreaSubscription = this.subscribeTo(this.visibleArea, {
mousedown: (e) => { this.startDrag(this.extractMouseEventData(e)) },
touchstart: (e) => { this.startDrag(this.extractTouchEventData(e)) }
})
}, { passive: true })

this.subscriptions.add(this.visibleAreaSubscription)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/minimap-quick-settings-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class MinimapQuickSettingsElement {

subs.add(this.subscribeTo(this.hiddenInput, {
focusout: (e) => { this.destroy() }
}))
}, { passive: true }))

subs.add(this.subscribeTo(this.onLeftButton, {
mousedown: (e) => {
Expand Down

0 comments on commit 5211251

Please sign in to comment.