prevent multitouch aborting connection

This commit is contained in:
peterkogo
2025-08-26 11:21:07 +02:00
parent d7a3172a60
commit 61778080c7

View File

@@ -207,6 +207,11 @@ function onPointerDown(
}
function onPointerUp(event: MouseEvent | TouchEvent) {
// Prevent multi-touch aborting connection
if ('touches' in event && event.touches.length > 0) {
return;
}
if (connectionStarted) {
if ((closestHandle || resultHandleDomNode) && connection && isValid) {
onConnect?.(connection);