mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Prevent propagation of mousewheel events from list
Without this, the autocomplete list is not scrollable using the mouse wheel since it is consumed by the parent editor.
This commit is contained in:
@@ -27,6 +27,8 @@ class AutocompleteView extends SelectList
|
||||
@span match.word
|
||||
|
||||
handleEvents: ->
|
||||
@on 'mousewheel', (event) -> event.stopPropagation()
|
||||
|
||||
@editor.on 'editor:path-changed', => @setCurrentBuffer(@editor.getBuffer())
|
||||
@editor.command 'autocomplete:attach', => @attach()
|
||||
@editor.command 'autocomplete:next', => @selectNextItem()
|
||||
|
||||
Reference in New Issue
Block a user