Hi Piotr,
just commited a fix for this.
I must say that I never liked this solution (to add className for this)
Maybe we could add a Bead ("CursorPointer") that adds this css class
selector to the strand. What do you think?
Even something better could be that bead could check listeners and change
the cursor to pointer if the strand has a MouseEvent.XXX listeners added
automatically, (although this solution needs more process)
El lun., 21 ene. 2019 a las 12:44, Piotr Zarzycki (<
[email protected]>) escribió:
> Hi Carlos,
>
> In LabelPlayground example we have label which should display hand cursor
> when we roll over on it. It's being used there className="cursor-pointer"
> [1] - I see in the browser that this class is being applied, but I cannot
> find where it is declared ?
> In my application I did use that class and it's also appear in the
> browser, but from where it comes from actually ?
>
> This example doesn't work properly so I wanted to fix it. I know that
> solution for that would be probably:
>
> .jewel.label.cursor-pointer {
> cursor: pointer;
> }
>
> [image: image.png]
>
> [1]
> https://github.com/apache/royale-asjs/blob/007eab65fd576598f7cef1d8e62ae160e16474a9/examples/royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml#L47
>
> Thanks,
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
--
Carlos Rovira
http://about.me/carlosrovira