GUI: reduce scroll boundaries
This commit is contained in:
parent
c264678fdc
commit
9dea093052
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue