mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only compare screenRow to mouseWheelScreen row when it is defined
Fixes #2482
This commit is contained in:
@@ -79,7 +79,7 @@ LinesComponent = React.createClass
|
||||
node = @getDOMNode()
|
||||
for lineId, lineNode of @lineNodesByLineId when not visibleLineIds.has(lineId)
|
||||
screenRow = @screenRowsByLineId[lineId]
|
||||
unless screenRow is mouseWheelScreenRow
|
||||
if not screenRow? or screenRow isnt mouseWheelScreenRow
|
||||
delete @lineNodesByLineId[lineId]
|
||||
delete @lineIdsByScreenRow[screenRow] if @lineIdsByScreenRow[screenRow] is lineId
|
||||
delete @screenRowsByLineId[lineId]
|
||||
|
||||
Reference in New Issue
Block a user