Skip to content
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(context-menu): add context.setAnchorRect call on pointer down #338

Conversation

simbas
Copy link
Contributor

@simbas simbas commented Feb 8, 2024

Long pressing the menu context trigger was not positioning the context menu on iOS devices.

IMG_428

The PR adds a context.setAnchorRect call on pointer down event listener to position the context menu on iOS devices.

IMG_4305

fix #271

…nt listener

add context.setAnchorRect call on pointer down event listener for the context menu to have a better
position on iOS

fix kobaltedev#271
Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for kobalte failed.

Name Link
🔨 Latest commit 1a9bcc6
🔍 Latest deploy log https://app.netlify.com/sites/kobalte/deploys/65c4cd70ff5b480008e25c14

@jer3m01 jer3m01 merged commit c1a74f1 into kobaltedev:main Feb 9, 2024
3 of 7 checks passed
@jer3m01
Copy link
Member

jer3m01 commented Feb 9, 2024

Thanks for the fix!

@github-actions github-actions bot mentioned this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong position of the context menu, when it opens with a long tap on the touch screen in Safari
2 participants