bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
13.09k stars 1.68k forks source link

Hover cards don't work on laptop with touch screen #5856

Open plax-00 opened 1 month ago

plax-00 commented 1 month ago

Steps to Reproduce

  1. Use bluesky on a laptop with a touch screen
  2. Hover over a profile name with the mouse

I did find the reason for this behavior: https://github.com/bluesky-social/social-app/blob/72270fd5053f1132a7966197cd9dce17b5672d57/src/lib/browser.ts#L6-L7 On my computer navigator.maxTouchPoints is 10 because of the touch screen, even though I don't actually use it. This is true for both Chrome and Firefox.

Attachments

No response

What platform(s) does this occur on?

Web (Desktop)

Device Info

No response

What version of the app are you using?

Build version: 1.92.1; Bundle info: 89cff31 (prod); Bundle date: 24101819; Platform: web

Additional Information

No response

brw commented 1 month ago

I was trying to figure out why the volume slider does not show up for videos for me while it does for other people and it appears to be because of this same issue. navigator.maxTouchPoints is set to 10 because my laptop has touch screen support but I don't use it either.

SharpMars commented 5 days ago

This seems to also happen to me, but on desktop. I think it was because of my keyboard also being reported as a pointing device for some reason, so that might have been telling the browser that there are 256 maxTouchPoints. After disabling that device in Device Manager it's reported as 0 for now. Some people are also saying this might be a bug with Windows instead, link here.