feat: disable touch events in Qt WebEngineView for improved hover effect handling

This commit is contained in:
claudi 2026-03-04 15:39:15 +01:00
parent 3804f90bc6
commit 44dbc9b2e5

View file

@ -1,7 +1,12 @@
"""WebDrop Bridge - Application entry point."""
import os
import sys
# Force Chromium to treat hover as primary input method and disable touch detection
# This ensures CSS media queries (hover: hover) evaluate correctly for desktop applications
os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--touch-events=disabled"
from PySide6.QtWidgets import QApplication
from webdrop_bridge.config import Config, ConfigurationError
@ -57,7 +62,7 @@ def main() -> int:
window.show()
logger.info("Main window opened successfully")
# Check for updates on startup (non-blocking, async)
window.check_for_updates_startup()