Symptoms
- Clicking on a specific website doesn't work on Android or iOS when Native 2D Mode is disabled.
- Clicking on other websites does work even when Native 2D Mode is disabled.
- Clicking on the affected website does work when Native 2D Mode is enabled.
- Clicking on the affected website does work on Windows and macOS.
Cause
In some rare cases, if a page detects clicks via JavaScript, it may use the browser's User-Agent to detect if it's a mobile browser and, if so, listen only for touch events and not mouse events. However, in 3D WebView's default 3D rendering mode, 3D WebView always sends clicks as mouse events rather than touch events, so the page ignores the clicks.
Resolution
There are a couple of options to resolve this issue:
The first option is to enable Native 2D Mode, because touch events are used instead of click events in Native 2D Mode.
An alternative is to use Web.SetUserAgent() to change the browser's User-Agent to that of a desktop browser, like this:
void Awake() {
// Use a desktop User-Agent
Web.SetUserAgent(false);
}