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 cfce3f2 commit a38abd1Copy full SHA for a38abd1
Desktop.Robot/Linux/Robot.cs
@@ -71,18 +71,21 @@ public override void MouseMove(int x, int y)
71
72
public override void MouseScrollVertical(int value)
73
{
74
- if (value < 0)
+ while (value > 0)
75
76
- click(true, Common.UP_BUTTON);
77
- Thread.Sleep(value);
78
- click(false, Common.UP_BUTTON);
79
- }
80
- else
81
- {
82
- click(true, Common.DOWN_BUTTON);
83
84
- click(false, Common.DOWN_BUTTON);
85
+ if (value < 0)
+ {
+ click(true, Common.UP_BUTTON);
+ Thread.Sleep(100);
+ click(false, Common.UP_BUTTON);
+ }
+ else
+ click(true, Common.DOWN_BUTTON);
86
+ click(false, Common.DOWN_BUTTON);
87
88
89
}
90
91
0 commit comments