Skip to content
Snippets Groups Projects
Commit 34e92dd3 authored by Advait Gupta's avatar Advait Gupta Committed by Jean-Baptiste Kempf
Browse files

qt: playlist: VLC 4: Double-clicking window titlebar regardless of speed maximizes it

    
    Fixes #26276
    
    The CSDTitlebarTapnDragHandler snippet was using the onTapped signal without any set delay between the clicks which was causing the windows to maximize even when the second click was long after the first one. Fixed this issue by replacing that signal with onDoubleTapped in which the signal is emitted only when the parent item is tapped twice between a short span of time.
    The window is now maximizing/minimizing only on proper double taps as tested on my local computer.
parent a747e30b
No related branches found
No related tags found
No related merge requests found
......@@ -22,14 +22,14 @@ import QtQuick.Window 2.15
Item {
TapHandler {
onTapped: {
if (tapCount === 2) {
onDoubleTapped: {
if ((topWindow.visibility & Window.Maximized) !== 0) {
mainInterface.requestInterfaceNormal()
} else {
mainInterface.requestInterfaceMaximized()
}
}
}
gesturePolicy: TapHandler.DragThreshold
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment