Skip to content
Snippets Groups Projects

qt: fix pip player can not be dragged properly within the browse page

1 file
+ 19
0
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading