feat: disable touch events in Qt WebEngineView for improved hover effect handling
This commit is contained in:
parent
3804f90bc6
commit
44dbc9b2e5
1 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
"""WebDrop Bridge - Application entry point."""
|
"""WebDrop Bridge - Application entry point."""
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
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 PySide6.QtWidgets import QApplication
|
||||||
|
|
||||||
from webdrop_bridge.config import Config, ConfigurationError
|
from webdrop_bridge.config import Config, ConfigurationError
|
||||||
|
|
@ -57,7 +62,7 @@ def main() -> int:
|
||||||
window.show()
|
window.show()
|
||||||
|
|
||||||
logger.info("Main window opened successfully")
|
logger.info("Main window opened successfully")
|
||||||
|
|
||||||
# Check for updates on startup (non-blocking, async)
|
# Check for updates on startup (non-blocking, async)
|
||||||
window.check_for_updates_startup()
|
window.check_for_updates_startup()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue