mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 685470 - Prevent tooltips when a click occurs. r=sicking
This commit is contained in:
parent
86d97108c8
commit
5d58303e58
@ -303,6 +303,10 @@ nsXULTooltipListener::AddTooltipSupport(nsIContent* aNode)
|
||||
false, false);
|
||||
aNode->AddSystemEventListener(NS_LITERAL_STRING("mousemove"), this,
|
||||
false, false);
|
||||
aNode->AddSystemEventListener(NS_LITERAL_STRING("mousedown"), this,
|
||||
false, false);
|
||||
aNode->AddSystemEventListener(NS_LITERAL_STRING("mouseup"), this,
|
||||
false, false);
|
||||
aNode->AddSystemEventListener(NS_LITERAL_STRING("dragstart"), this,
|
||||
true, false);
|
||||
|
||||
@ -317,6 +321,8 @@ nsXULTooltipListener::RemoveTooltipSupport(nsIContent* aNode)
|
||||
|
||||
aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mouseout"), this, false);
|
||||
aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mousemove"), this, false);
|
||||
aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mousedown"), this, false);
|
||||
aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mouseup"), this, false);
|
||||
aNode->RemoveSystemEventListener(NS_LITERAL_STRING("dragstart"), this, true);
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user