GUI: reduce scroll boundaries

This commit is contained in:
tildearrow 2022-03-17 16:17:33 -05:00
parent c264678fdc
commit 9dea093052

View file

@ -5277,10 +5277,10 @@ bool FurnaceGUI::loop() {
#endif #endif
if (selecting) { if (selecting) {
// detect whether we have to scroll // detect whether we have to scroll
if (motionY<patWindowPos.y) { if (motionY<patWindowPos.y+2.0f*dpiScale) {
addScroll(-1); addScroll(-1);
} }
if (motionY>patWindowPos.y+patWindowSize.y) { if (motionY>patWindowPos.y+patWindowSize.y-2.0f*dpiScale) {
addScroll(1); addScroll(1);
} }
} }