ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibWeb: implement navigator.maxTouchPoints

Open ChaseKnowlden opened this issue 1 year ago • 4 comments

This is needed by vercel.com to determine how many touch points there is.

For #1298

ChaseKnowlden avatar Sep 26 '24 01:09 ChaseKnowlden

This is linux-only, would you mind adding an implementation for Mac and possibly Windows too?

There's no sense in adding a Windows implementation, as we can't build the application for windows.

ADKaster avatar Oct 01 '24 16:10 ADKaster

Mac computers don't even have touch screens.

ChaseKnowlden avatar Oct 03 '24 16:10 ChaseKnowlden

Mac computers don't even have touch screens.

If you plug in a graphics tablet or other touchscreen, that should be included I think. We need to ask the OS about it.

AtkinsSJ avatar Oct 03 '24 17:10 AtkinsSJ

I've added the code to check touch screen or trackpad support on macOS.

ChaseKnowlden avatar Oct 08 '24 17:10 ChaseKnowlden

Will cause merge conflict after #2256 is merged.

ChaseKnowlden avatar Nov 09 '24 21:11 ChaseKnowlden

Apparently rebasing is enough to make it work

circl-lastname avatar Nov 10 '24 13:11 circl-lastname