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

check maxTouchPoints is greater than 1 - not 0 - for hover card #4158

Merged
merged 1 commit into from
May 21, 2024

Conversation

haileyok
Copy link
Contributor

Why

Right now the hover cards do not work on Firefox Windows are not working, because - specifically on Windows and specifically with Firefox - maxTouchPoints is set to one, not zero.

The MDN docs also say that we should be using > 1 instead of > 0

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints

Test Plan

Now that we are using > 1, this works correctly.

Before and after, on bsky.app vs localhost.

Screen.Recording.2024-05-21.at.12.05.00.PM.mov

Copy link

render bot commented May 21, 2024

Copy link

Old size New size Diff
6.87 MB 6.87 MB 0 B (0.00%)

@gaearon gaearon merged commit 630b9b7 into main May 21, 2024
6 checks passed
@gaearon gaearon deleted the hailey/max-touch-points-hover-card branch May 21, 2024 19:18
@haileyok haileyok mentioned this pull request May 21, 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.

3 participants