Hi, I'm currently using vyuh_node_flow: 0.3.2+1 and implementing custom nodes via buildCustomNode.
I encountered an issue related to gesture handling:
I wrapped my custom node UI with a GestureDetector and implemented onLongPress.
The long press works correctly when the node is placed near the center of the canvas.
However, when the node is positioned near the edges of the canvas, the onLongPress callback is not triggered at all.
Observation:
If I drag the same node from the edge area to the center, the long press starts working again.
This suggests that some parent layer (possibly canvas pan/drag gesture handling) might be intercepting the gesture near the edges.
My implementation (simplified):
GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: () {
debugPrint("Long press triggered");
},
child: AnimatedContainer(
// custom node UI
),
)
Expected behavior:
onLongPress should be triggered consistently regardless of the node’s position on the canvas.
Actual behavior:
onLongPress is not triggered when the node is near the canvas boundaries.
Question:
Is there any gesture layer (e.g., pan/zoom handling) that might be intercepting pointer events near the edges?
Is there a recommended way to ensure node-level gestures (like long press) have higher priority?
Thanks in advance for your help!
Hi, I'm currently using vyuh_node_flow: 0.3.2+1 and implementing custom nodes via buildCustomNode.
I encountered an issue related to gesture handling:
I wrapped my custom node UI with a GestureDetector and implemented onLongPress.
The long press works correctly when the node is placed near the center of the canvas.
However, when the node is positioned near the edges of the canvas, the onLongPress callback is not triggered at all.
Observation:
If I drag the same node from the edge area to the center, the long press starts working again.
This suggests that some parent layer (possibly canvas pan/drag gesture handling) might be intercepting the gesture near the edges.
My implementation (simplified):
GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: () {
debugPrint("Long press triggered");
},
child: AnimatedContainer(
// custom node UI
),
)
Expected behavior:
onLongPress should be triggered consistently regardless of the node’s position on the canvas.
Actual behavior:
onLongPress is not triggered when the node is near the canvas boundaries.
Question:
Is there any gesture layer (e.g., pan/zoom handling) that might be intercepting pointer events near the edges?
Is there a recommended way to ensure node-level gestures (like long press) have higher priority?
Thanks in advance for your help!