瀏覽代碼

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);
 	}