Skip to content

Commit

Permalink
Ensure pointer events are set to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Sep 23, 2024
1 parent aa780d0 commit 7364e84
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export function Root({
document.body.style.pointerEvents = 'auto';
});
}

if(!o) {
document.body.style.pointerEvents = 'auto';
}
},
});
const [hasBeenOpened, setHasBeenOpened] = React.useState<boolean>(false);
Expand Down Expand Up @@ -229,12 +233,12 @@ export function Root({
return false;
}

// if (isDraggingInDirection) {
// lastTimeDragPrevented.current = date;
if (isDraggingInDirection) {
lastTimeDragPrevented.current = date;

// // We are dragging down so we should allow scrolling
// return false;
// }
// We are dragging down so we should allow scrolling
return false;
}

// Keep climbing up the DOM tree as long as there's a parent
while (element) {
Expand Down

0 comments on commit 7364e84

Please sign in to comment.