2
0
Эх сурвалжийг харах

fix currentDrag propagation and set it to true by default, ignore cancel

Nicolas Cannasse 6 жил өмнө
parent
commit
87705d1f2b
1 өөрчлөгдсөн 2 нэмэгдсэн , 5 устгасан
  1. 2 5
      hxd/SceneEvents.hx

+ 2 - 5
hxd/SceneEvents.hx

@@ -331,16 +331,13 @@ class SceneEvents {
 				}
 
 				if( currentDrag != null && (currentDrag.ref == null || currentDrag.ref == e.touchId) ) {
-					e.propagate = false;
+					e.propagate = true;
 					e.cancel = false;
 					currentDrag.f(e);
 					e.relX = ox;
 					e.relY = oy;
-					if( e.cancel || e.propagate ) {
-						e.cancel = false;
-						e.propagate = false;
+					if( !e.propagate )
 						continue;
-					}
 				}
 
 				emitEvent(e);