mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Use capture phase for mouseup handler
This ensures that we always handle the mouseup even if the mouse is outside of the editor when the button is released
This commit is contained in:
@@ -1887,7 +1887,7 @@ class TextEditorComponent {
|
||||
}
|
||||
|
||||
window.addEventListener('mousemove', didMouseMove)
|
||||
window.addEventListener('mouseup', didMouseUp)
|
||||
window.addEventListener('mouseup', didMouseUp, {capture: true})
|
||||
}
|
||||
|
||||
autoscrollOnMouseDrag ({clientX, clientY}, verticalOnly = false) {
|
||||
|
||||
Reference in New Issue
Block a user