فهرست منبع

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() {
 	public function stopDrag() {
+		if( currentDrag != null && currentDrag.onCancel != null )
+			currentDrag.onCancel();
 		currentDrag = null;
 		currentDrag = null;
 	}
 	}