补充预览取消手势回归断言
覆盖越过移动阈值后 pointercancel 清理点击抑制
This commit is contained in:
@@ -185,6 +185,7 @@ describe('useNodeTransformInteraction', () => {
|
||||
|
||||
act(() => {
|
||||
result.current.onNodePointerDown(pointerEvent(target, 2, 0, 0), child);
|
||||
result.current.onNodePointerMove(pointerEvent(target, 2, 3, 0));
|
||||
result.current.onNodePointerCancel(pointerEvent(target, 2, 0, 0));
|
||||
});
|
||||
expect(canvasProjection.selectNode).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user