-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add allowMobileScroll prop to allow for clicks to optionally pass through on mobile #760
Conversation
…lly pass through on mobile
Can you please invert it: "preventMobileScroll", default true. |
What about "allowMobileScroll"? I prefer having the default be false @STRML |
Thanks for the contribution. Please see the additional commit for fixups. |
Thanks @STRML !! Much appreciated 🙏 |
|
||
const e = new Event('touchstart'); | ||
// Oddly `e.defaultPrevented` is not changing here. Maybe because we're not mounted to a real doc? | ||
let pdCalled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one @STRML , thanks for adding a test! my Achilles heel!
@STRML it appears that I need a new release in order to be able to use the updated code. Do you think you could do that plz! Thanks! |
When do we have the next release to use this |
Fixes #728
@STRML let me know if this PR looks good to you. Thanks!
Add doNotPreventMobileScroll prop to allow for clicks to optionally pass through on mobile