Browse Source

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

Nicolas Cannasse 6 years ago
parent
commit
87705d1f2b
1 changed files with 2 additions and 5 deletions
  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) ) {
 				if( currentDrag != null && (currentDrag.ref == null || currentDrag.ref == e.touchId) ) {
-					e.propagate = false;
+					e.propagate = true;
 					e.cancel = false;
 					e.cancel = false;
 					currentDrag.f(e);
 					currentDrag.f(e);
 					e.relX = ox;
 					e.relX = ox;
 					e.relY = oy;
 					e.relY = oy;
-					if( e.cancel || e.propagate ) {
-						e.cancel = false;
-						e.propagate = false;
+					if( !e.propagate )
 						continue;
 						continue;
-					}
 				}
 				}
 
 
 				emitEvent(e);
 				emitEvent(e);