diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-13 18:10:23 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-01 05:01:44 +0100 |
| commit | fa6dd3d807f7c7c9292b5f4d5cc10406d10e173d (patch) | |
| tree | 27146a232022554983c8fa92f7be757554774e78 /src/GraphicObjects/Scroller.cs | |
| parent | c7a9d36bd679f827b649e2b792465b127fd577d1 (diff) | |
base changed done, need mouse state to be updated
Diffstat (limited to 'src/GraphicObjects/Scroller.cs')
| -rw-r--r-- | src/GraphicObjects/Scroller.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/GraphicObjects/Scroller.cs b/src/GraphicObjects/Scroller.cs index 459205fe..58a0f245 100644 --- a/src/GraphicObjects/Scroller.cs +++ b/src/GraphicObjects/Scroller.cs @@ -24,7 +24,6 @@ using System.Xml.Serialization; using System.ComponentModel; using System.Diagnostics; using Cairo; -using OpenTK.Input; namespace Crow { @@ -166,10 +165,6 @@ namespace Crow internal Point savedMousePos; public override bool MouseIsIn (Point m) { -// Debug.WriteLine ("Mouse in scroller: {0} scr coord:{1} mouse:{2}", -// base.ScreenCoordinates (Slot).ContainsOrIsEqual (m), -// base.ScreenCoordinates (Slot), m); - return Visible ? base.ScreenCoordinates(Slot).ContainsOrIsEqual (m) : false; } public override void checkHoverWidget (MouseMoveEventArgs e) @@ -180,10 +175,6 @@ namespace Crow } public override void onMouseWheel (object sender, MouseWheelEventArgs e) { - //base.onMouseWheel (sender, e); base event buble to the top -// if (MouseWheelChanged!=null) -// MouseWheelChanged (this, e); - if (Child == null) return; @@ -218,7 +209,7 @@ namespace Crow gr.Save (); //clip to scrolled client zone - CairoHelpers.CairoRectangle (gr, ClientRectangle, CornerRadius);//+ new Point((int)ScrollX,(int)ScrollY) + CairoHelpers.CairoRectangle (gr, ClientRectangle, CornerRadius); gr.Clip (); gr.Translate (-ScrollX, -ScrollY); |