🐛 Coordinate conversion is hard

This commit is contained in:
Antonio Scandurra
2015-12-02 16:26:10 +01:00
parent 5bcdcbeef6
commit e10fdc234b
3 changed files with 10 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ class LineTopIndex {
let nextBlocksHeight = blocksHeight + block.height
let linesHeight = block.row * this.defaultLineHeight
if (nextBlocksHeight + linesHeight > top) {
while (lastRow < block.row && lastTop + this.defaultLineHeight < top) {
while (lastRow < block.row && lastTop + this.defaultLineHeight <= top) {
lastTop += this.defaultLineHeight
lastRow++
}