diff --git a/packages/react-resizable-panels/src/PanelResizeHandleRegistry.ts b/packages/react-resizable-panels/src/PanelResizeHandleRegistry.ts index b0044efa4..34211e856 100644 --- a/packages/react-resizable-panels/src/PanelResizeHandleRegistry.ts +++ b/packages/react-resizable-panels/src/PanelResizeHandleRegistry.ts @@ -269,7 +269,7 @@ function updateListeners() { window.removeEventListener("touchcancel", handlePointerUp); window.removeEventListener("touchend", handlePointerUp); - if (registerResizeHandle.length > 0) { + if (registeredResizeHandlers.size > 0) { if (isPointerDown) { if (intersectingHandles.length > 0) { ownerDocumentCounts.forEach((count, ownerDocument) => {