Bug 685470 - Prevent tooltips when a click occurs. r=sicking

This commit is contained in:
James H 2012-12-05 21:45:13 -05:00
parent 86d97108c8
commit 5d58303e58

View File

@ -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;