Skip to content

Commit

Permalink
🐛 Add guard when screenDelta is NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jan 7, 2015
1 parent 3aa521b commit 4f1f204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mixins/decoration-management.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ class DecorationManagement extends Mixin
firstRenderedScreenRow = @getFirstVisibleScreenRow()
screenDelta = (lastRenderedScreenRow - firstRenderedScreenRow) - (endScreenRow - startScreenRow)

if isNaN(screenDelta)
console.log startScreenRow, endScreenRow, firstRenderedScreenRow, lastRenderedScreenRow
screenDelta = 0

changeEvent =
start: startScreenRow
end: endScreenRow
Expand Down

0 comments on commit 4f1f204

Please sign in to comment.