79714572

Date: 2025-07-25 10:34:04
Score: 0.5
Natty:
Report link

I've resolved the issue through this github thread that refers this stackoverflow thread.

https://github.com/tauri-apps/tauri/discussions/11957

Detail:

Here's a complete helpful response for the GitHub issue

After few months, this issue has been randomly solved by passing a specific configuration to the web wrapper.

Spoofing the browser agent and passing specific params to Tauri makes the user experience super smooth!

The Solution

Add these configurations to your Tauri WebView setup:

.user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)   Chrome/120.0.0.0 Safari/537.36")
.additional_browser_args("--disable-features=VizDisplayCompositor")

Why This Works

The issue occurs because:

  1. VizDisplayCompositor on macOS causes click coordinate mismatches
  2. Websites apply Safari-specific workarounds that make clicking worse in embedded WebViews
  3. The fake Chrome user agent prevents these problematic "mobile-friendly" fixes

Key Points

--disable-features=VizDisplayCompositor is the main fix for the clicking issue
The Chrome user agent prevents websites from applying broken Safari touch handlers
This works for both main windows and auxiliary/dialog windows
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: metasmash