Browse Source

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

Pavel Alexandrov 6 năm trước cách đây
mục cha
commit
26d1aec75a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 	}