Skip to content

Commit

Permalink
Set touch-action: "none" for mobile
Browse files Browse the repository at this point in the history
This prevents touch/drag from scrolling page
  • Loading branch information
bvaughn committed Dec 24, 2022
1 parent 7bf8171 commit a78ad44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-resizable-panels/src/PanelResizeHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function PanelResizeHandle({
onTouchStart={() => startDragging(id)}
style={{
cursor: direction === "horizontal" ? "ew-resize" : "ns-resize",
touchAction: "none",
}}
>
{children}
Expand Down

1 comment on commit a78ad44

@vercel
Copy link

@vercel vercel bot commented on a78ad44 Dec 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.