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 350a4fe commit e47e18bCopy full SHA for e47e18b
src/Myra/Graphics2D/UI/Containers/ScrollViewer.cs
@@ -135,7 +135,13 @@ public IImage VerticalScrollKnob
135
get; set;
136
}
137
138
- [Browsable(false)]
+ [Category("Appearance")]
139
+ public int ScrollMultiplier
140
+ {
141
+ get; set;
142
+ } = 10;
143
+
144
+ [Browsable(false)]
145
[Content]
146
public override Widget Content
147
{
@@ -395,7 +401,7 @@ public override void OnMouseWheel(float delta)
395
401
return;
396
402
397
403
398
- var step = 10 * ScrollMaximum.Y / _thumbMaximumY;
404
+ var step = ScrollMultiplier * ScrollMaximum.Y / _thumbMaximumY;
399
405
if (delta < 0)
400
406
407
_scrollbarOrientation = Orientation.Vertical;
0 commit comments