diff --git a/src/interface/modeler/quickapp/qml/BaseRectangle.qml b/src/interface/modeler/quickapp/qml/BaseRectangle.qml index c074bb7..9576888 100644 --- a/src/interface/modeler/quickapp/qml/BaseRectangle.qml +++ b/src/interface/modeler/quickapp/qml/BaseRectangle.qml @@ -4,6 +4,13 @@ Rectangle { opacity: enabled ? 1 : 0 enabled: true + MouseArea { + // Used to prevent mouse events to fall down to the OpenGLView + anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton + onWheel: {} + } + Behavior on opacity { PropertyAnimation { duration: 200 diff --git a/src/interface/modeler/quickapp/qml/OpenGLView.qml b/src/interface/modeler/quickapp/qml/OpenGLView.qml index af5804e..011702b 100644 --- a/src/interface/modeler/quickapp/qml/OpenGLView.qml +++ b/src/interface/modeler/quickapp/qml/OpenGLView.qml @@ -1,6 +1,4 @@ import QtQuick 2.0 Rectangle { - width: 100 - height: 62 }