[vlc-commits] [Git][videolan/vlc][master] qml: disable filtering child mouse events in Browse page flickable

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Feb 8 14:23:21 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4847ee6e by Fatih Uzunoglu at 2025-02-08T14:09:42+00:00
qml: disable filtering child mouse events in Browse page flickable

This fixes pip player can not be dragged properly within the browse
page. Similar to 9b86a3b4.

- - - - -


1 changed file:

- modules/gui/qt/network/qml/BrowseHomeDisplay.qml


Changes:

=====================================
modules/gui/qt/network/qml/BrowseHomeDisplay.qml
=====================================
@@ -149,6 +149,25 @@ FocusScope {
 
         Navigation.parentItem: root
 
+        Component.onCompleted: {
+            // Flickable filters child mouse events for flicking (even when
+            // the delegate is grabbed). However, this is not a useful
+            // feature for non-touch cases, so disable it here and enable
+            // it if touch is detected through the hover handler:
+            MainCtx.setFiltersChildMouseEvents(this, false)
+        }
+
+        HoverHandler {
+            acceptedDevices: PointerDevice.TouchScreen
+
+            onHoveredChanged: {
+                if (hovered)
+                    MainCtx.setFiltersChildMouseEvents(flickable, true)
+                else
+                    MainCtx.setFiltersChildMouseEvents(flickable, false)
+            }
+        }
+
         Widgets.NavigableCol {
             id: column
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4847ee6eab0e2cc271d1a7421a9ce68b50304ff5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4847ee6eab0e2cc271d1a7421a9ce68b50304ff5
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list