- 
    Bug 
- 
    Resolution: Fixed
- 
    P2: Important 
- 
    5.15.9, 6.3.0, 6.4.1, 6.5.0 FF
- 
        
- 
        730cdc504 (dev), b83050f99 (6.5), 5c41fdfd8 (6.4), 0568b3c4d (tqtc/lts-6.2)
Behavior with mouse:
Can be closed / opened by dragging. Clicking outside the drawer does nothing. Clicking on the drawer closes the open page if open.
Behavior with touch:
Same as with mouse with the exception that if tapped outside the drawer, interaction with the drawer (e.g. tapping on the drawer) no longer does anything.
NOTE: This problem cannot be reproduced on Win 10 or with a virtual machine as far as I can tell. The problem was reproduced on Ubuntu 20.
Item {
    Rectangle {
        color: "blue"
        anchors.fill: parent
    }
    
    Button {
        text: "Open"
        onClicked: drawer.open()
    }
    Drawer {
        id: drawer
        edge: Qt.LeftEdge
        y: 50
        height : 500
        width: 500
        enabled: true
        dragMargin: 25
        modal: true
        //closePolicy: Popup.CloseOnPressOutsideParent | Popup.CloseOnPressOutside
        background: Rectangle {
            color: "black"
            opacity: 0.25
        }
        Behavior on opacity {
            NumberAnimation{ duration: 500}
        }
        Rectangle {
            color: "red"
            anchors.centerIn: parent
            visible : true
            width: 100
            height: 100
        }
        Label {
            text: "test"
            anchors.centerIn: parent
        }
        onVisibleChanged: {
            console.log("visible changed of drawer: " + visible)
        }
    }
}
- relates to
- 
                    QTBUG-103268 QML item Menu doesn't close with touch screen on CloseOnPressOutside -         
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-103811 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 449149,6 | Drawer: don't get stuck in open state after touches outside | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 449474,2 | Drawer: don't get stuck in open state after touches outside | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 449475,3 | Drawer: don't get stuck in open state after touches outside | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 449476,1 | Drawer: don't get stuck in open state after touches outside | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 | 
| 449477,4 | Drawer: don't get stuck in open state after touches outside | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |