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:
Kevin Sawicki
2013-06-13 18:50:36 -07:00
parent 52ffa2d8c0
commit d6be29dbdc

View File

@@ -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()