Skip to content

Commit

Permalink
fix: TooTip can't show when hover from left to right
Browse files Browse the repository at this point in the history
ToolTip delay 50ms display

Issue: linuxdeepin/developer-center#8095
  • Loading branch information
mhduiy authored and 18202781743 committed Apr 23, 2024
1 parent 5203d91 commit 0af8eaf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion frame/qml/PanelToolTip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ Item {
}
}

function open()
Timer {
id: toolTipShowTimer
interval: 50
onTriggered: {
showToolTip()
}
}

function showToolTip()
{
var window = Panel.toolTipWindow
if (!window)
Expand All @@ -42,8 +50,18 @@ Item {
window.show()
toolTip.open()
}

function open()
{
toolTipShowTimer.start();
}

function close()
{
if (toolTipShowTimer.running) {
toolTipShowTimer.stop()
}

var window = Panel.toolTipWindow
if (!window)
return
Expand Down

0 comments on commit 0af8eaf

Please sign in to comment.