mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 12:25:05 +00:00
GUI: reduce scroll boundaries
This commit is contained in:
parent
c264678fdc
commit
9dea093052
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue