From bb35a2779aa1d0df4f9441690e61ff3b1a11d4e2 Mon Sep 17 00:00:00 2001 From: Ljung323 Date: Fri, 21 May 2021 11:12:22 +0900 Subject: [PATCH] use containsMouse --- src/FlightDisplay/FlyViewVideo.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/FlightDisplay/FlyViewVideo.qml b/src/FlightDisplay/FlyViewVideo.qml index 29751b7..551ba39 100644 --- a/src/FlightDisplay/FlyViewVideo.qml +++ b/src/FlightDisplay/FlyViewVideo.qml @@ -67,18 +67,16 @@ Item { QGCLabel { text: qsTr("Double-click to exit full screen") font.pointSize: ScreenTools.largeFontPointSize - visible: QGroundControl.videoManager.fullScreen && flyViewVideoMouseArea.isHovered + visible: QGroundControl.videoManager.fullScreen && flyViewVideoMouseArea.containsMouse anchors.centerIn: parent } MouseArea { id: flyViewVideoMouseArea - property bool isHovered: false anchors.fill: parent enabled: pipState.state === pipState.fullState hoverEnabled: true onDoubleClicked: QGroundControl.videoManager.fullScreen = !QGroundControl.videoManager.fullScreen - onHoveredChanged: isHovered = !isHovered } ProximityRadarVideoView{