Browse Source

reset cursor when current over interactive is removed

ncannasse 9 years ago
parent
commit
b3ae190951
1 changed files with 3 additions and 1 deletions
  1. 3 1
      hxd/SceneEvents.hx

+ 3 - 1
hxd/SceneEvents.hx

@@ -39,8 +39,10 @@ class SceneEvents {
 	function onRemove(i) {
 	function onRemove(i) {
 		if( i == currentFocus )
 		if( i == currentFocus )
 			currentFocus = null;
 			currentFocus = null;
-		if( i == currentOver )
+		if( i == currentOver ) {
 			currentOver = null;
 			currentOver = null;
+			hxd.System.setCursor(Default);
+		}
 		pushList.remove(i);
 		pushList.remove(i);
 	}
 	}