aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-07-02 10:29:50 +0300
committerRoy <Roy.mail.net@gmail.com>2023-07-02 10:29:50 +0300
commite498fc49f5d18d3152d5028dafbda5e5f6db4f96 (patch)
tree2695ab79881667dd32a2c2a860e3bd97997ae78a /Software/Visual_Studio
parent2420757c5e5dd6190df3a1e6d6bbf907a7c47806 (diff)
downloadTango-e498fc49f5d18d3152d5028dafbda5e5f6db4f96.tar.gz
Tango-e498fc49f5d18d3152d5028dafbda5e5f6db4f96.zip
Scroll Viewer Scroll Speed X2.
Diffstat (limited to 'Software/Visual_Studio')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs b/Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs
index a20f52d7b..dff66d821 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs
@@ -39,6 +39,7 @@ namespace Tango.Touch.Controls
private const double _friction_factor_per_second = 0.9;
private DispatcherTimer _move_timer;
private double _last_scroll_position;
+ private const double SCROLL_DELTA = 30;
#region Events
@@ -688,11 +689,11 @@ namespace Tango.Touch.Controls
var scrollPos = GetScrollPosition();
if (e.Delta > 0)
{
- scrollPos -= 15;
+ scrollPos -= SCROLL_DELTA;
}
else if(e.Delta < 0)
{
- scrollPos += 15;
+ scrollPos += SCROLL_DELTA;
}
ScrollToPosition(scrollPos);
SetThumbPosition();