diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/LightTouchScrollViewer.cs | 5 |
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(); |
