mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
🐛 Coordinate conversion is hard
This commit is contained in:
@@ -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++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user