From eacc527c5f9f77fe65d51da44e3365c834aab262 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 1 May 2013 15:25:59 -0700 Subject: [PATCH] Fixed: Tooltips for a view in another view with tooltip was not shown Previously, tooltip system was using bubbling event. This was actually making impossible to see a view's tooltip if the parent view also has a tooltip. This patch changes the capturing mode from bubbling to capture. --- AppKit/CPView.j | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 186d1089f..e597cb66a 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -373,9 +373,9 @@ var CPViewFlags = { }, #if PLATFORM(DOM) if (_DOMElement.addEventListener) { - _DOMElement.addEventListener("mouseover", _toolTipFunctionIn, NO); - _DOMElement.addEventListener("keypress", _toolTipFunctionOut, NO); - _DOMElement.addEventListener("mouseout", _toolTipFunctionOut, NO); + _DOMElement.addEventListener("mouseover", _toolTipFunctionIn, YES); + _DOMElement.addEventListener("keypress", _toolTipFunctionOut, YES); + _DOMElement.addEventListener("mouseout", _toolTipFunctionOut, YES); } else if (_DOMElement.attachEvent) { @@ -400,9 +400,9 @@ var CPViewFlags = { }, #if PLATFORM(DOM) if (_DOMElement.removeEventListener) { - _DOMElement.removeEventListener("mouseover", _toolTipFunctionIn, NO); - _DOMElement.removeEventListener("keypress", _toolTipFunctionOut, NO); - _DOMElement.removeEventListener("mouseout", _toolTipFunctionOut, NO); + _DOMElement.removeEventListener("mouseover", _toolTipFunctionIn, YES); + _DOMElement.removeEventListener("keypress", _toolTipFunctionOut, YES); + _DOMElement.removeEventListener("mouseout", _toolTipFunctionOut, YES); } else if (_DOMElement.detachEvent) {