Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.3.3

- [595](https://github.com/bvaughn/react-resizable-panels/pull/595): Don't call `event.preventDefault()` on "pointerup" unless a handle was actively dragged,

## 4.3.2

- Moved `flex-grow` `Panel` style to an inline value instead of a CSS variable defined on the parent `Group` to improve rendering performance. (This significantly reduces the negative impact from forced-reflow)
Expand Down
8 changes: 5 additions & 3 deletions lib/global/event-handlers/onDocumentPointerUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export function onDocumentPointerUp(event: PointerEvent) {
return;
}

event.preventDefault();

const { interactionState } = read();

switch (interactionState.state) {
Expand All @@ -21,7 +19,11 @@ export function onDocumentPointerUp(event: PointerEvent) {
}
});

updateCursorStyle(event.currentTarget as Document);
if (interactionState.hitRegions.length > 0) {
updateCursorStyle(event.currentTarget as Document);

event.preventDefault();
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-resizable-panels",
"version": "4.3.2",
"version": "4.3.3",
"type": "module",
"author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
"contributors": [
Expand Down
Loading