リビジョン | 60 (tree) |
---|---|
日時 | 2021-04-29 21:45:22 |
作者 | dangerouswoo |
refs #998
@@ -55,6 +55,11 @@ | ||
55 | 55 | { |
56 | 56 | int numberOfTextLinesToMove = e.Delta * SystemInformation.MouseWheelScrollLines / 60; |
57 | 57 | |
58 | + if (ZoomBar.Value + numberOfTextLinesToMove > ZoomBar.Maximum) | |
59 | + numberOfTextLinesToMove = ZoomBar.Maximum - ZoomBar.Value; | |
60 | + if(ZoomBar.Value + numberOfTextLinesToMove < ZoomBar.Minimum) | |
61 | + numberOfTextLinesToMove = ZoomBar.Minimum - ZoomBar.Value; | |
62 | + | |
58 | 63 | ZoomBar.Value += numberOfTextLinesToMove; |
59 | 64 | |
60 | 65 | MapViewCnt.MapScale = (int)ZoomBar.Value; |