Skip to content

Commit

Permalink
Handle pinch-zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Oct 1, 2024
1 parent c3f12b8 commit 489b638
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ScrollAreaScrollbar = React.forwardRef(function ScrollAreaScrollbar(
const scrollbarEl = orientation === 'vertical' ? scrollbarYRef.current : scrollbarXRef.current;

function handleWheel(event: WheelEvent) {
if (!viewportEl || !scrollbarEl) {
if (!viewportEl || !scrollbarEl || event.ctrlKey) {
return;
}

Expand Down

0 comments on commit 489b638

Please sign in to comment.