Open jakobhellermann opened 1 month ago
It works but I don't like the code.
bottomRow
previousMaxDigits
Recalc
offscreenLinePadding
Searching...
https://github.com/user-attachments/assets/a583e0ee-483a-45d4-892e-c06f256c9b4a
It works but I don't like the code.
bottomRow
is copied to 3 locations. It could be extracted to a function, but one location also wants visualBottomRow, topRow and visualTopRow.previousMaxDigits
to preventRecalc
on every scroll eventoffscreenLinePadding
. Where does the 3 come from? In theSearching...
case it expands the padding on line 98, ingame at 97.https://github.com/user-attachments/assets/a583e0ee-483a-45d4-892e-c06f256c9b4a