Topic: Fixing Keyboard-Scrolling
stonerl Topic Opener |
Posted at: 2019-12-07, 21:46
In master keyboard-scrolling is broken, it is not possible to scroll diagonal and scrolling itself is painstakingly slow. So, I restored the old behavior. This comes with a price though. When a window gets opened scrolling isn't possible as long as one doesn't click on the map. I could circumvent this but this breaks closing the windows with ESC. So, my current suggestion would be. When a window gets opened it gets focused and scrolling isn't possible as long as the user doesn't click on the playing field. Minimizing windows takes focus from them and allows scrolling. Restoring gives focus back to the window which means no scrolling until clicked on the playing field. This would make it possible to close windows with ESC. More problems arise with the new dropdown/up menus. They get focus and don't give it back to the playing field until a window is opened. Currently, I have no clue as to how this could be solved. The current state can be found here, Any Ideas suggestions are welcome, Top Quote |
WorldSavior |
Posted at: 2019-12-08, 11:04
It's also painstakingly slow in build20, build19 and build18 Wanted to save the world, then I got widetracked Top Quote |
stonerl Topic Opener |
Posted at: 2019-12-08, 15:48
BTW in build 20, scrolling speed is bound to the FPS. If you increase the max FPS in the settings to say 90 (99 is the max) scrolling should be faster. Top Quote |
WorldSavior |
Posted at: 2019-12-08, 16:09
Thanks for the tip, but it's still useless snailspeed then. And when I setted maxFPS to 99, the game crashed when I closed Widelands. Wanted to save the world, then I got widetracked Top Quote |
stonerl Topic Opener |
Posted at: 2019-12-09, 15:02
I think I fixed it: Diagonal scrolling:
Scrolling distance is now 1/4 of the screen resolution in x/y-direction and set to smooth. Top Quote |
stonerl Topic Opener |
Posted at: 2019-12-10, 16:43
Fixed in the latest master. Top Quote |
WorldSavior |
Posted at: 2019-12-10, 17:38
Sounds fast. One day I might test it. Thanks a lot! Wanted to save the world, then I got widetracked Top Quote |
Nordfriese |
Posted at: 2019-12-10, 17:47
It was actually too fast, so it was decreased to 1/8. You can increase it to 1/4 by holding Ctrl and decrease to 1/16 by holding Shift. Top Quote |
stonerl Topic Opener |
Posted at: 2019-12-10, 18:20
You have Ubuntu, haven't you? You could use Flatpaks to use the latest development builds. Top Quote |
trimard |
Posted at: 2019-12-10, 18:49
Is the last flatpack updated? 86b7920 is the last one? Cause it's not working as advertised!
The diagonals in the numpad do work! (Though because my keyboard only has one diagonal on it for some reason, I can't test all directions) edit: check the repo, yes indeed flatpak isn't on last version it's on the commit of december 2. I guess your changes weren't implemented yet, so my comment is useless Edited: 2019-12-10, 18:53
Top Quote |