Explorar o código

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

Pavel Alexandrov %!s(int64=6) %!d(string=hai) anos
pai
achega
26d1aec75a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 	}