mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Update NonJumpingPanel.cs
This commit is contained in:
parent
d9a6922310
commit
a3e4f2f92e
1 changed files with 18 additions and 6 deletions
|
@ -38,16 +38,28 @@ namespace GreenshotPlugin.Controls {
|
|||
/// </summary>
|
||||
/// <param name="e">MouseEventArgs</param>
|
||||
protected override void OnMouseWheel(MouseEventArgs e)
|
||||
{
|
||||
if (VScroll && (ModifierKeys & Keys.Shift) == Keys.Shift)
|
||||
{
|
||||
{//Check if Scrollbars available and CTRL key pressed -> Zoom IN OUT
|
||||
if((VScroll || HScroll)&& (ModifierKeys & Keys.Control) == Keys.Control)
|
||||
{
|
||||
VScroll = false;
|
||||
HScroll = false;
|
||||
base.OnMouseWheel(e);
|
||||
VScroll = true;
|
||||
HScroll = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.OnMouseWheel(e);
|
||||
else
|
||||
{
|
||||
//Vertical Scoll with SHIFT key pressed
|
||||
if (VScroll && (ModifierKeys & Keys.Shift) == Keys.Shift )
|
||||
{
|
||||
VScroll = false;
|
||||
base.OnMouseWheel(e);
|
||||
VScroll = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.OnMouseWheel(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue