We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a38abd1 commit 02d7556Copy full SHA for 02d7556
Desktop.Robot/Linux/Robot.cs
@@ -71,21 +71,24 @@ public override void MouseMove(int x, int y)
71
72
public override void MouseScrollVertical(int value)
73
{
74
- while (value > 0)
+ do
75
76
- if (value < 0)
77
- {
78
- click(true, Common.UP_BUTTON);
79
- Thread.Sleep(100);
80
- click(false, Common.UP_BUTTON);
81
- }
82
- else
83
84
- click(true, Common.DOWN_BUTTON);
85
86
- click(false, Common.DOWN_BUTTON);
87
88
+ if (value < 0)
+ {
+ click(true, Common.UP_BUTTON);
+ Thread.Sleep(100);
+ click(false, Common.UP_BUTTON);
+ value++;
+ }
+ else
+ click(true, Common.DOWN_BUTTON);
+ click(false, Common.DOWN_BUTTON);
+ value--;
89
90
91
+ while (value == 0);
92
}
93
94
0 commit comments