You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2017/07/11 08:50:37 UTC

[FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

I’m breaking this off into its own thread because it deserves a separate discussion.

After looking into how ROLL_OVER/ROLL_OUT events work, I see that it’s being handled pretty oddly. MouseEvent has a “installRollOverMixin” function which adds a mouseover event to window and fires ROLL_OVER and ROLL_OUT events for any elements which have listeners registered for them.

This seems horribly inefficient and I don’t understand why it’s necessary. It seems to me that mouseenter and rollOver (as well as mouseleave and rollOut) are analogous.

Am I missing something?

Thanks,
Harbs

> On Jul 11, 2017, at 10:48 AM, Harbs <ha...@gmail.com> wrote:
> 
> No. I’m wrong.
> 
> First of all, it’s mouseenter rather than rollover, and it seems like it’s fired more than mouseover.[1]
> https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter <https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter>
> 
> That does beg the question though: Are the MouseEvent constants wrong for Javascript?
> 
> 
>> On Jul 11, 2017, at 10:38 AM, Harbs <harbs.lists@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Shouldn’t the event be triggered by rollover rather than mouseover?
>> 
>> That seems like the issue to me…
>> 
>>> On Jul 11, 2017, at 10:13 AM, Alex Harui <aharui@adobe.com <ma...@adobe.com>> wrote:
>>> 
>>> This seems like "just-in-case" code.  I could see that it might be needed
>>> in a different bead for Express though.
>>> 
>>> Without this change, is there an infinite loop somewhere?
>>> 
>>> Thanks,
>>> -Alex
>>> 
>>> On 7/10/17, 10:40 PM, "jmclean@apache.org <ma...@apache.org>" <jmclean@apache.org <ma...@apache.org>> wrote:
>>> 
>>>> FLEX-35338 stop cursor from spinning / CPU from spiking
>>>> 
>>>> 
>>>> Project: 
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us>
>>>> .apache.org%2Frepos%2Fasf%2Fflex-asjs%2Frepo&data=02%7C01%7C%7C8e2e2d5b3b3
>>>> 54f54848508d4c81f5768%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6363534
>>>> 84318029070&sdata=32hEJB%2BTNsWKG8MY%2FdPr3d0RWT5Xr1tECWWpVTlM270%3D&reser
>>>> ved=0
>>>> Commit: 
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>>>> .apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fcommit%2F549a10d8&data=02%7C01%7C%
>>>> 7C8e2e2d5b3b354f54848508d4c81f5768%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>> 7C0%7C636353484318029070&sdata=dcNhAGu8WspafZBZCRxb%2FN0z7D%2Fym3tuv%2BAaq
>>>> G280z0%3D&reserved=0
>>>> Tree: 
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>>>> .apache.org%2Frepos%2Fasf%2Fflex-asjs%2Ftree%2F549a10d8&data=02%7C01%7C%7C
>>>> 8e2e2d5b3b354f54848508d4c81f5768%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>>>> 0%7C636353484318029070&sdata=0p89CGQLSv0Pp0yscOBNjKRJ1HUMhHrDngm4xxixalc%3
>>>> D&reserved=0
>>>> Diff: 
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>>>> .apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fdiff%2F549a10d8&data=02%7C01%7C%7C
>>>> 8e2e2d5b3b354f54848508d4c81f5768%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>>>> 0%7C636353484318029070&sdata=%2FclUp4scfr0z%2B%2FTPjBMlVw2kScADTcLPMwop5J4
>>>> 7cIU%3D&reserved=0
>>>> 
>>>> Branch: refs/heads/develop
>>>> Commit: 549a10d82da5835c61a2b1247b65f7bfbc2f9a36
>>>> Parents: 3891820
>>>> Author: Justin Mclean <jm...@apache.org>
>>>> Authored: Tue Jul 11 14:57:04 2017 +1000
>>>> Committer: Justin Mclean <jm...@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(-)
>>>> ----------------------------------------------------------------------
>>>> 
>>>> 
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>>>> .apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fblob%2F549a10d8%2Fframeworks%2Fpro
>>>> jects%2FBasic%2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fhtml%2Faccessori
>>>> es%2FToolTipBead.as&data=02%7C01%7C%7C8e2e2d5b3b354f54848508d4c81f5768%7Cf
>>>> a7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636353484318029070&sdata=hifp5T8
>>>> xFlL4zov22P5qOUYtZqrYuPqTqOJg2x4X5lo%3D&reserved=0
>>>> ----------------------------------------------------------------------
>>>> 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
>>>> 
>>> 
>> 
> 


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
To be clear: That css should be applied to the ToolTip element.

> On Jul 11, 2017, at 6:54 PM, Harbs <ha...@gmail.com> wrote:
> 
> pointer-events:none;
> 
> Definitely the right way to go.
> 
>> On Jul 11, 2017, at 6:01 PM, piotrz <pi...@gmail.com> wrote:
>> 
>> Alex,
>> 
>> What do you mean by Mouse "transparent" ? We still need to use some event
>> mouse (enter/leave) where after roll over on the element tooltip should be
>> shown.
>> 
>> Piotr
>> 
>> 
>> 
>> 
>> 
>> -----
>> Apache Flex PMC
>> piotrzarzycki21@gmail.com
>> --
>> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63099.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
> 


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
pointer-events:none;

Definitely the right way to go.

> On Jul 11, 2017, at 6:01 PM, piotrz <pi...@gmail.com> wrote:
> 
> Alex,
> 
> What do you mean by Mouse "transparent" ? We still need to use some event
> mouse (enter/leave) where after roll over on the element tooltip should be
> shown.
> 
> Piotr
> 
> 
> 
> 
> 
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63099.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> Maybe I'm not understanding the scenario.  I assumed that the problem
> Justin is trying to fix is that you roll over a component, the component
> shows a tooltip, but the tooltip appears under the mouse so you get a
> rollout of the component and rollover the tooltip.  The rollout of the
> component causes the tooltip to go away resulting in a rollover of the
> component which causes the component to show a tooltip, and so on.

That’s one of the problems yes.

> If the tooltip cannot be a target for mouse events (mouseEnabled=false in
> Flash and I think it is "pointer-events:none" in JS) then I think the
> tooltip will not cause a rollout on the component when it appears under
> the mouse.

Certainly worth investigating. There may still be an issue here if you roll off over the tool tip in the case where it goes beyond the boundary of the component but not sure.

Thanks,
Justin

Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Piotr,

Maybe I'm not understanding the scenario.  I assumed that the problem
Justin is trying to fix is that you roll over a component, the component
shows a tooltip, but the tooltip appears under the mouse so you get a
rollout of the component and rollover the tooltip.  The rollout of the
component causes the tooltip to go away resulting in a rollover of the
component which causes the component to show a tooltip, and so on.

If the tooltip cannot be a target for mouse events (mouseEnabled=false in
Flash and I think it is "pointer-events:none" in JS) then I think the
tooltip will not cause a rollout on the component when it appears under
the mouse.

One reason for tooltips to be in a bead is because there can be many
different implementations.  The one that currently exists is as simple as
possible.  There is no delay between rollover and showing the tooltip.
There is no "scrubbing" support where you roll from one button to the next
in a ButtonBar.  It doesn't support interactive tooltips that do want to
be mouse targets.  There is no logic for smart positioning of the tooltip.
 All of these options will hopefully be implemented by volunteers in a
PAYG fashion.

Thanks,
-Alex

On 7/11/17, 8:01 AM, "piotrz" <pi...@gmail.com> wrote:

>Alex,
>
>What do you mean by Mouse "transparent" ? We still need to use some event
>mouse (enter/leave) where after roll over on the element tooltip should be
>shown.
>
>Piotr
>
>
>
>
>
>-----
>Apache Flex PMC
>piotrzarzycki21@gmail.com
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.2333347.n4.nabble.com%2FRe-2-5-git-commit-flex-asjs-refs-hea
>ds-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p6
>3099.html&data=02%7C01%7C%7C232a34024264401d485608d4c872f6df%7Cfa7b1b5a7b3
>4438794aed2c178decee1%7C0%7C0%7C636353843465345667&sdata=QC3t2Y3rI%2BVyBvA
>KcjqwnoIilH5TLLkQ%2FBTODiQmEv4%3D&reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by piotrz <pi...@gmail.com>.
Alex,

What do you mean by Mouse "transparent" ? We still need to use some event
mouse (enter/leave) where after roll over on the element tooltip should be
shown.

Piotr





-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63099.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
That should have been MOUSE_ENTER rather than MOUSE_OVER.

> On Jul 11, 2017, at 6:58 PM, Harbs <ha...@gmail.com> wrote:
> 
> It’s been supported by every browser since 2014. I think we should switch to that.
> 
> I was pondering whether we should standardize on ROLL_OVER or MOUSE_OVER. I was thinking that we could have both.
> 
>> On Jul 11, 2017, at 6:14 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>> 
>> At one point in time, mouseenter was only supported by IE.  If we agree it
>> is safe to use on all of our target browsers, we can switch to using it.
>> 
>> I don't think it will solve the flicker problem.  I think the tooltips
>> need to be "mouse transparent".
>> 
>> My 2 cents,
>> -Alex
>> 
>> On 7/11/17, 4:32 AM, "Harbs" <ha...@gmail.com> wrote:
>> 
>>> My point with tooltip is that you probably don’t need bubbling for
>>> tooltips and it causes more events than are needed.
>>> 
>>> There’s use cases for both mouseover and mouseenter.
>>> 
>>> Resolving Justin’s issues using mouseenter would require a couple of
>>> things:
>>> 1, We would need mouseeenter (and mouseleave) events and not custom
>>> ROLL_OVER events
>>> 2. The tooltip would need to be a descendant of the element which has the
>>> mouseenter event attached to it. Otherwise, you’d get mouseleave events
>>> when the mouse rolls over the tooltip.
>>> 
>>> Fixing those two things seems to me like the ideal way to resolve the
>>> performance issues.
>>> 
>>> My question here is why are we not using the standard mouseenter and are
>>> using a hacky solution for custom ROLL_OVER events instead.
>>> 
>>> I think Alex wrote that code, so I’m going to wait until he can respond.
>>> 
>>> Thanks,
>>> Harbs
>>> 
>>>> On Jul 11, 2017, at 1:50 PM, piotrz <pi...@gmail.com> wrote:
>>>> 
>>>> Ahh..Yes. Maybe let's live it as is. Maybe if you will use in your app
>>>> tooltips more extensively we will see.
>>>> 
>>>> Piotr
>>>> 
>>>> 
>>>> 
>>>> -----
>>>> Apache Flex PMC
>>>> piotrzarzycki21@gmail.com
>>>> --
>>>> View this message in context:
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>>>> ex-development.2333347.n4.nabble.com%2FRe-2-5-git-commit-flex-asjs-refs-h
>>>> eads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp6306
>>>> 1p63087.html&data=02%7C01%7C%7Cbed16583edd74d4d2a0708d4c860cd33%7Cfa7b1b5
>>>> a7b34438794aed2c178decee1%7C0%7C0%7C636353765461900518&sdata=Ia2G2yNdIScR
>>>> cThmf9qfrnp%2Bue%2BkEvCmFDEooPHgnwo%3D&reserved=0
>>>> Sent from the Apache Flex Development mailing list archive at
>>>> Nabble.com.
>>> 
>> 
> 


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
It’s been supported by every browser since 2014. I think we should switch to that.

I was pondering whether we should standardize on ROLL_OVER or MOUSE_OVER. I was thinking that we could have both.

> On Jul 11, 2017, at 6:14 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> At one point in time, mouseenter was only supported by IE.  If we agree it
> is safe to use on all of our target browsers, we can switch to using it.
> 
> I don't think it will solve the flicker problem.  I think the tooltips
> need to be "mouse transparent".
> 
> My 2 cents,
> -Alex
> 
> On 7/11/17, 4:32 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>> My point with tooltip is that you probably don’t need bubbling for
>> tooltips and it causes more events than are needed.
>> 
>> There’s use cases for both mouseover and mouseenter.
>> 
>> Resolving Justin’s issues using mouseenter would require a couple of
>> things:
>> 1, We would need mouseeenter (and mouseleave) events and not custom
>> ROLL_OVER events
>> 2. The tooltip would need to be a descendant of the element which has the
>> mouseenter event attached to it. Otherwise, you’d get mouseleave events
>> when the mouse rolls over the tooltip.
>> 
>> Fixing those two things seems to me like the ideal way to resolve the
>> performance issues.
>> 
>> My question here is why are we not using the standard mouseenter and are
>> using a hacky solution for custom ROLL_OVER events instead.
>> 
>> I think Alex wrote that code, so I’m going to wait until he can respond.
>> 
>> Thanks,
>> Harbs
>> 
>>> On Jul 11, 2017, at 1:50 PM, piotrz <pi...@gmail.com> wrote:
>>> 
>>> Ahh..Yes. Maybe let's live it as is. Maybe if you will use in your app
>>> tooltips more extensively we will see.
>>> 
>>> Piotr
>>> 
>>> 
>>> 
>>> -----
>>> Apache Flex PMC
>>> piotrzarzycki21@gmail.com
>>> --
>>> View this message in context:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>>> ex-development.2333347.n4.nabble.com%2FRe-2-5-git-commit-flex-asjs-refs-h
>>> eads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp6306
>>> 1p63087.html&data=02%7C01%7C%7Cbed16583edd74d4d2a0708d4c860cd33%7Cfa7b1b5
>>> a7b34438794aed2c178decee1%7C0%7C0%7C636353765461900518&sdata=Ia2G2yNdIScR
>>> cThmf9qfrnp%2Bue%2BkEvCmFDEooPHgnwo%3D&reserved=0
>>> Sent from the Apache Flex Development mailing list archive at
>>> Nabble.com.
>> 
> 


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Alex Harui <ah...@adobe.com.INVALID>.
At one point in time, mouseenter was only supported by IE.  If we agree it
is safe to use on all of our target browsers, we can switch to using it.

I don't think it will solve the flicker problem.  I think the tooltips
need to be "mouse transparent".

My 2 cents,
-Alex

On 7/11/17, 4:32 AM, "Harbs" <ha...@gmail.com> wrote:

>My point with tooltip is that you probably don’t need bubbling for
>tooltips and it causes more events than are needed.
>
>There’s use cases for both mouseover and mouseenter.
>
>Resolving Justin’s issues using mouseenter would require a couple of
>things:
>1, We would need mouseeenter (and mouseleave) events and not custom
>ROLL_OVER events
>2. The tooltip would need to be a descendant of the element which has the
>mouseenter event attached to it. Otherwise, you’d get mouseleave events
>when the mouse rolls over the tooltip.
>
>Fixing those two things seems to me like the ideal way to resolve the
>performance issues.
>
>My question here is why are we not using the standard mouseenter and are
>using a hacky solution for custom ROLL_OVER events instead.
>
>I think Alex wrote that code, so I’m going to wait until he can respond.
>
>Thanks,
>Harbs
>
>> On Jul 11, 2017, at 1:50 PM, piotrz <pi...@gmail.com> wrote:
>> 
>> Ahh..Yes. Maybe let's live it as is. Maybe if you will use in your app
>> tooltips more extensively we will see.
>> 
>> Piotr
>> 
>> 
>> 
>> -----
>> Apache Flex PMC
>> piotrzarzycki21@gmail.com
>> --
>> View this message in context:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>>ex-development.2333347.n4.nabble.com%2FRe-2-5-git-commit-flex-asjs-refs-h
>>eads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp6306
>>1p63087.html&data=02%7C01%7C%7Cbed16583edd74d4d2a0708d4c860cd33%7Cfa7b1b5
>>a7b34438794aed2c178decee1%7C0%7C0%7C636353765461900518&sdata=Ia2G2yNdIScR
>>cThmf9qfrnp%2Bue%2BkEvCmFDEooPHgnwo%3D&reserved=0
>> Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
My point with tooltip is that you probably don’t need bubbling for tooltips and it causes more events than are needed.

There’s use cases for both mouseover and mouseenter.

Resolving Justin’s issues using mouseenter would require a couple of things:
1, We would need mouseeenter (and mouseleave) events and not custom ROLL_OVER events
2. The tooltip would need to be a descendant of the element which has the mouseenter event attached to it. Otherwise, you’d get mouseleave events when the mouse rolls over the tooltip.

Fixing those two things seems to me like the ideal way to resolve the performance issues.

My question here is why are we not using the standard mouseenter and are using a hacky solution for custom ROLL_OVER events instead.

I think Alex wrote that code, so I’m going to wait until he can respond.

Thanks,
Harbs

> On Jul 11, 2017, at 1:50 PM, piotrz <pi...@gmail.com> wrote:
> 
> Ahh..Yes. Maybe let's live it as is. Maybe if you will use in your app
> tooltips more extensively we will see.
> 
> Piotr
> 
> 
> 
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63087.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by piotrz <pi...@gmail.com>.
Ahh..Yes. Maybe let's live it as is. Maybe if you will use in your app
tooltips more extensively we will see.

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63087.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
mouseover is needed if you need bubbling. That’s sometimes the correct behavior.

> On Jul 11, 2017, at 1:19 PM, piotrz <pi...@gmail.com> wrote:
> 
> It seems to. MouseOver is launching really often - Maybe Enter/Leave would be
> really better. 
> Need test to see whether we have same behavior having Enter/Leave as we have
> with MouseOver currently.
> 
> Thanks,
> Piotr
> 
> 
> 
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63085.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by piotrz <pi...@gmail.com>.
It seems to. MouseOver is launching really often - Maybe Enter/Leave would be
really better. 
Need test to see whether we have same behavior having Enter/Leave as we have
with MouseOver currently.

Thanks,
Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63085.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by Harbs <ha...@gmail.com>.
Here is an example of what happens using rollOver and rollOut in Flash.[1]

It seems like the same as enter/leave in HTML.

[1]http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/ <http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/>
> On Jul 11, 2017, at 12:19 PM, piotrz <pi...@gmail.com> wrote:
> 
> Harbs,
> 
> I have found following examples [1][2][3]. Maybe it will help us.
> 
> [1]
> https://siongui.github.io/2012/08/07/javascript-compare-mouseenter-mouseleave-mouseover-mouseout/
> [2]
> https://siongui.github.io/code/javascript-mouseenter-mouseleave/mouseenterleave.html
> [3]
> https://siongui.github.io/code/javascript-mouseenter-mouseleave/mouseoverout.html
> 
> Piotr
> 
> 
> 
> 
> 
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63080.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS]MouseEvent.ROLL_OVER (was Re: [2/5] git commit...)

Posted by piotrz <pi...@gmail.com>.
Harbs,

I have found following examples [1][2][3]. Maybe it will help us.

[1]
https://siongui.github.io/2012/08/07/javascript-compare-mouseenter-mouseleave-mouseover-mouseout/
[2]
https://siongui.github.io/code/javascript-mouseenter-mouseleave/mouseenterleave.html
[3]
https://siongui.github.io/code/javascript-mouseenter-mouseleave/mouseoverout.html

Piotr





-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-2-5-git-commit-flex-asjs-refs-heads-develop-FLEX-35338-stop-cursor-from-spinning-CPU-from-spiking-tp63061p63080.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.