question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect iOS detection with Chrome on multi-touch supported Windows device (e.g. Surface Go)

See original GitHub issue

After I updated CM to 5.59.0, Ctrl+V does not paste clipboard contents on Chrome on Surface Go.

This commit seems to be the cause: https://github.com/codemirror/CodeMirror/commit/7f3c36619f964d20e20c0ff5bec9cee99dae1549

> userAgent = navigator.userAgent
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"

> platform = navigator.platform
"Win32"

> edge = /Edge\/(\d+)/.exec(userAgent)
null

> navigator.maxTouchPoints
10

> ios = !edge && /AppleWebKit/.test(userAgent) && (/Mobile\/\w+/.test(userAgent) || navigator.maxTouchPoints > 2)
true

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
marijnhcommented, Dec 31, 2020

Since this was causing quite some problems I’ve released a 5.59.1 emergency fix.

1reaction
marijnhcommented, Dec 27, 2020

Thanks! I’ll apply the same patch to my other projects then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect iOS detection with Chrome on multi-touch supported ...
After I updated CM to 5.59.0, Ctrl+V does not paste clipboard contents on Chrome on Surface Go. This commit seems to be the...
Read more >
What to try if your Surface touchscreen doesn't work
If your Surface touchscreen doesn't work, try these steps first · Solution 1: Check for Windows and Surface updates · Solution 2: Boot...
Read more >
Chrome Enterprise and Education release notes
The ChromeOS rollback feature enables managed devices to download and run an earlier version of ChromeOS than the one currently installed.
Read more >
Touch events - Web APIs - MDN Web Docs - Mozilla
Touch events are similar to mouse events except they support simultaneous touches and at different locations on the touch surface.
Read more >
Microsoft Surface Go (Intel Pentium Gold, 8GB RAM, 128GB ...
The best of Microsoft — favorite features, trusted security. Designed for the latest Windows laptop operating system and Office 365, Surface Go runs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found