FLEX-35338 stop cursor from spinning / CPU from spiking

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/549a10d8
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/549a10d8
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/549a10d8

Branch: refs/heads/develop
Commit: 549a10d82da5835c61a2b1247b65f7bfbc2f9a36
Parents: 3891820
Author: Justin Mclean <jmcl...@apache.org>
Authored: Tue Jul 11 14:57:04 2017 +1000
Committer: Justin Mclean <jmcl...@apache.org>
Committed: Tue Jul 11 14:57:04 2017 +1000

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/html/accessories/ToolTipBead.as   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/549a10d8/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
index 03ce21e..bdf0b68 100644
--- 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
+++ 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/ToolTipBead.as
@@ -100,7 +100,10 @@ package org.apache.flex.html.accessories
                 * @private
                 */
                protected function rollOverHandler( event:MouseEvent ):void
-               {       
+               {
+                       if (!toolTip)
+                               return;
+
             IEventDispatcher(_strand).addEventListener(MouseEvent.MOUSE_OUT, 
rollOutHandler, false);
             
             var comp:IUIBase = _strand as IUIBase

Reply via email to