internal: fix qmlls freezing
This commit is contained in:
parent
d329949fc8
commit
c125f1c7e4
2 changed files with 5 additions and 9 deletions
|
|
@ -51,10 +51,10 @@ MouseArea {
|
|||
}
|
||||
}
|
||||
|
||||
onPositionChanged: ({
|
||||
x,
|
||||
y
|
||||
}) => {
|
||||
onPositionChanged: event => {
|
||||
const x = event.x;
|
||||
const y = event.y;
|
||||
|
||||
// Show osd on hover
|
||||
const showOsd = inRightPanel(panels.osd, x, y);
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ Item {
|
|||
return 0;
|
||||
if (mouse.pressed)
|
||||
return 0.7;
|
||||
if (mouse.hovered)
|
||||
if (mouse.containsMouse)
|
||||
return 0.8;
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -139,14 +139,10 @@ Item {
|
|||
MouseArea {
|
||||
id: mouse
|
||||
|
||||
property bool hovered
|
||||
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: search.text ? Qt.PointingHandCursor : undefined
|
||||
|
||||
onEntered: hovered = true
|
||||
onExited: hovered = false
|
||||
onClicked: search.text = ""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue