You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/09/30 11:09:22 UTC

[GitHub] [royale-asjs] cristallium opened a new issue #485: StatesWithTransitionsImpl : When 2 components should have transition only one is triggerred (source file attached)

cristallium opened a new issue #485: StatesWithTransitionsImpl : When 2 components should have transition only one is triggerred (source file attached)
URL: https://github.com/apache/royale-asjs/issues/485
 
 
   Hi,
   
   Let take the following code 
   
   [TestRoyale.zip](https://github.com/apache/royale-asjs/files/3670528/TestRoyale.zip)
   
   ```
               <js:transitions>
                   <js:Transition fromState="HomeState" toState="*"> <!-- (1) -->
                       <js:Fade target="homeView" alphaFrom="1" alphaTo="0" duration="1000" />
                   </js:Transition>
                   <js:Transition fromState="*" toState="HomeState"><!-- (2) -->
                        <js:Fade target="homeView" alphaFrom="0" alphaTo="1" duration="1000" />
                   </js:Transition>
                   <js:Transition fromState="ProductState" toState="*"><!-- (3) -->
                       <js:Fade target="productView" alphaFrom="1" alphaTo="0" duration="1000" />
                   </js:Transition>
                   <js:Transition fromState="*" toState="ProductState"> <!-- (4) -->
                       <js:Fade target="productView" alphaFrom="0" alphaTo="1" duration="1000" />
                   </js:Transition>
               </js:transitions>
   ```
   When changing state from **HomeState** to **ProductState**, **(1)** and **(4)** should be triggered. It seem only **(1)** is triggered
   
   When changing state from **ProductState** to **HomeState**, **(2)** and **(3)** should be triggered. It seem **only  (2)** is triggered
   
   Regards

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services