]> O.S.I.I.S - jp/crow.git/commitdiff
debug after rebase DockingViewTests
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 1 Feb 2018 06:46:27 +0000 (07:46 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 1 Feb 2018 06:46:27 +0000 (07:46 +0100)
src/GraphicObjects/GraphicObject.cs

index dfb00e06fd637e6c037908dbf99093a0b4432b0a..c002c865f46f289fb4feb4acae81094b75db8c41 100644 (file)
@@ -1054,7 +1054,7 @@ namespace Crow
                                isDragged = value;
 
                                if (isDragged) {
-                                       currentInterface.HoverWidget = null;
+                                       CurrentInterface.HoverWidget = null;
                                        onStartDrag (this, null);
                                }
 
@@ -1533,14 +1533,14 @@ namespace Crow
 
                        if (CurrentInterface.ActiveWidget == null)
                                CurrentInterface.ActiveWidget = this;
-                       if (this.Focusable && !(Interface.FocusOnHover || currentInterface.focusGiven)) {
+                       if (this.Focusable && !(Interface.FocusOnHover || CurrentInterface.focusGiven)) {
                                CurrentInterface.FocusedWidget = this;
                                CurrentInterface.ActiveWidget = this;
-                               currentInterface.focusGiven = true;
+                               CurrentInterface.focusGiven = true;
                                if (CurrentInterface.eligibleForDoubleClick == this && CurrentInterface.clickTimer.ElapsedMilliseconds < Interface.DoubleClick)
                                        onMouseDoubleClick (this, e);
                                else
-                                       currentInterface.clickTimer.Restart();
+                                       CurrentInterface.clickTimer.Restart();
                                CurrentInterface.eligibleForDoubleClick = null;
                        }
                        //bubble event to the top
@@ -1553,8 +1553,8 @@ namespace Crow
                public virtual void onMouseUp(object sender, MouseButtonEventArgs e){
                        if (IsDragged){
                                bool dropOK = false;
-                               if (currentInterface.HoverWidget!=null) {
-                                       if (currentInterface.HoverWidget.AllowDrop)
+                               if (CurrentInterface.HoverWidget!=null) {
+                                       if (CurrentInterface.HoverWidget.AllowDrop)
                                                dropOK = true;
                                }
                                if (dropOK)