bvaughn / react-resizable-panels

Home Page:https://react-resizable-panels.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onDragging to much calls

damaafer opened this issue · comments

Does I misuse PanelResizeHandle's onDragging prop ?

Excepted behavior:
onDragging is only call when it's PanelResizeHandle is effectively dragged.

Actual behavior:
Any click anywhere on the page triggers onDragging callback of every PanelResizeHandle.

Repro: https://codesandbox.io/p/sandbox/react-resizable-panels-forked-t6cmkx
(open the console and click anywhere on the page).

This is a bug. Will try to release a fix shortly.

Fixed in 5afa01c and 6c74960; released in version 2.0.4


❤️ → ☕ givebrian.coffee

Works great. Thank you for the quick fix 👍