Permalink
Browse files

Handle Pressed when Disabled

  • Loading branch information...
1 parent c0d634b commit b95c19f5ffce188a41c2d3995d698c4ff26ab5ca @mogikanin mogikanin committed Feb 19, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 Fleux/UIElements/UIElement.cs
@@ -326,6 +326,8 @@ public virtual bool Pan(Point from, Point to, bool done, Point startPoint)
public virtual UIElement Pressed(Point p)
{
+ if (!Enabled) return null;
+
UIElement handled = this.TraverseHandle(this.ApplyTransformation(p),
el => el.Pressed(this.ApplyTransformation(p).ClientTo(this.ApplyTransformation(el.Location))));
if (handled == null && this.PressedHandler != null)

0 comments on commit b95c19f

Please sign in to comment.