Explorar o código

reset cursor when current over interactive is removed

ncannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
b3ae190951
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      hxd/SceneEvents.hx

+ 3 - 1
hxd/SceneEvents.hx

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