mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Avoid traversing through shadow root on mousewheel events
This commit is contained in:
@@ -908,10 +908,10 @@ TextEditorComponent = React.createClass
|
||||
lineNumberNodeForScreenRow: (screenRow) -> @refs.gutter.lineNumberNodeForScreenRow(screenRow)
|
||||
|
||||
screenRowForNode: (node) ->
|
||||
while node isnt document
|
||||
while node?
|
||||
if screenRow = node.dataset.screenRow
|
||||
return parseInt(screenRow)
|
||||
node = node.parentNode
|
||||
node = node.parentElement
|
||||
null
|
||||
|
||||
getFontSize: ->
|
||||
|
||||
Reference in New Issue
Block a user