PaintingControl: Zoom with Alt instead of Control
This commit is contained in:
@@ -644,7 +644,7 @@ Public Class PaintingControl
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CheckMouseWheel(sender As Object, e As MouseEventArgs) Handles Me.MouseWheel
|
Private Sub CheckMouseWheel(sender As Object, e As MouseEventArgs) Handles Me.MouseWheel
|
||||||
If pressedControl Then
|
If pressedAlt Then
|
||||||
Dim val As Single = e.Delta / 120 / 10
|
Dim val As Single = e.Delta / 120 / 10
|
||||||
ZoomFactor = New SizeF(Math.Max(ZoomFactor.Width + val, 0.25), Math.Max(ZoomFactor.Height + val, 0.25))
|
ZoomFactor = New SizeF(Math.Max(ZoomFactor.Width + val, 0.25), Math.Max(ZoomFactor.Height + val, 0.25))
|
||||||
Refresh()
|
Refresh()
|
||||||
|
|||||||
Reference in New Issue
Block a user