소스 검색

reset cursor when current over interactive is removed

ncannasse 9 년 전
부모
커밋
b3ae190951
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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);
 	}