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

Problems with touch devices. #861

Open
fjavierv opened this issue Nov 12, 2022 · 5 comments
Open

Problems with touch devices. #861

fjavierv opened this issue Nov 12, 2022 · 5 comments

Comments

@fjavierv
Copy link

Hi, first of all thanks for this project.

After that, I have problem using your library with touch devices (phones, tables, ...) and I think that it is about this line:

pointerEvents: mouseOverSpotlight ? 'none' : 'auto',

Because mouseOverSpotlight won't be true in touch devices, right?

You can test for you self in Controlled Demo using some touch devices, You will see how you need to press twice in order to follow the tutorial.

@ben-obringer
Copy link

I'm experiencing the same issue. Has anybody found a work around for this?

@gilbarbara
Copy link
Owner

This is working as expected now. They probably fixed it upstream.
Tested on Safari and Chrome mobile on an iPhone.

@SanjayTml
Copy link

SanjayTml commented Oct 6, 2023

It works on browsers in iPhone but not in Android. Tested in different android devices with chrome. @gilbarbara

@zvandehy
Copy link

@gilbarbara Do you have any idea of what the issue is? How can I help or is there an estimated time for when this issue will be resolved?

@gilbarbara
Copy link
Owner

Hey @zvandehy
Yeah, the overlay needs to switch the pointer-events property between auto | none when the cursor enters/leaves the spotlight area so the content behind it is usable. It can't always use' none' because the overlay needs to be clickable, and changing the property on click doesn't work either.
I've tried to fix it before but couldn't find a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants