aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ScrollingObject.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-26 10:24:39 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-26 10:24:39 +0200
commit4b39241bad2eb55a91305c4aa5197c1640e81c48 (patch)
treec7c69917b6d2ac1ec985c9cddd5f66961c0f26cd /src/GraphicObjects/ScrollingObject.cs
parentda33782c4ab475d0e8c1216f13ecbff2450ec546 (diff)
remove Initialise, currentInterface is set by instanciator
Diffstat (limited to 'src/GraphicObjects/ScrollingObject.cs')
-rw-r--r--src/GraphicObjects/ScrollingObject.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GraphicObjects/ScrollingObject.cs b/src/GraphicObjects/ScrollingObject.cs
index 330b230d..8b9bc58a 100644
--- a/src/GraphicObjects/ScrollingObject.cs
+++ b/src/GraphicObjects/ScrollingObject.cs
@@ -141,7 +141,7 @@ namespace Crow
public override void onMouseWheel (object sender, MouseWheelEventArgs e)
{
base.onMouseWheel (sender, e);
- if (CurrentInterface.Keyboard.IsKeyDown (Key.ShiftLeft))
+ if (currentInterface.Keyboard.IsKeyDown (Key.ShiftLeft))
ScrollY += e.Delta * MouseWheelSpeed;
else
ScrollX += e.Delta * MouseWheelSpeed;