소스 검색

Actually call `onCancel` during `stopDrag` (#519)

Pavel Alexandrov 6 년 전
부모
커밋
26d1aec75a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      hxd/SceneEvents.hx

+ 2 - 0
hxd/SceneEvents.hx

@@ -315,6 +315,8 @@ class SceneEvents {
 	}
 
 	public function stopDrag() {
+		if( currentDrag != null && currentDrag.onCancel != null )
+			currentDrag.onCancel();
 		currentDrag = null;
 	}