Commit f2d6cb8
[Bugfix] Corrected zooming in/out command handler
If you bind zoom in/out commands to keys and then try to use zoom, you will find that zooming works incorrectly. Game would switch 2 zoomsteps per 1 keypress. It happens because the handler changes zoomstep twice: when you press the key and when you release it.
Fix makes zoomstep changing only when key is pressed, not released.1 parent b4c412f commit f2d6cb8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
| 971 | + | |
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
| |||
0 commit comments