GUI: reduce scroll boundaries

This commit is contained in:
tildearrow 2022-03-17 16:17:33 -05:00
parent c264678fdc
commit 9dea093052
1 changed files with 2 additions and 2 deletions

View File

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