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 2021/12/19 18:18:40 UTC

[GitHub] [royale-asjs] greg-dove opened a new issue #1170: Some JS events are being dispatched as Royale events but received and native events

greg-dove opened a new issue #1170:
URL: https://github.com/apache/royale-asjs/issues/1170


   Examples are emulation IndexChangedEvent which has a 'change' type and is being sent via the browser dom. This is likely for all sub-classes that have event type names that mean they are routed through the browser dom. 
   
   If a Royale event is dispatched, that is what the listener should receive.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] Harbs commented on issue #1170: Some JS events are being dispatched as Royale events but received as native events

Posted by GitBox <gi...@apache.org>.
Harbs commented on issue #1170:
URL: https://github.com/apache/royale-asjs/issues/1170#issuecomment-997446604


   Maybe you should add a test that a browser event on an element remains a browser event?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] greg-dove commented on issue #1170: Some JS events are being dispatched as Royale events but received as native events

Posted by GitBox <gi...@apache.org>.
greg-dove commented on issue #1170:
URL: https://github.com/apache/royale-asjs/issues/1170#issuecomment-997450484


   > Maybe you should add a test that a browser event on an element remains a browser event?
   
   Not sure what you mean... how could it be otherwise? By browser event, you mean the native JS 'Event' or 'KeyboardEvent' etc, right? I don't think you can dispatch anything in dom that is not of these known types...


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] greg-dove closed issue #1170: Some JS events are being dispatched as Royale events but received as native events

Posted by GitBox <gi...@apache.org>.
greg-dove closed issue #1170:
URL: https://github.com/apache/royale-asjs/issues/1170


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] Harbs commented on issue #1170: Some JS events are being dispatched as Royale events but received as native events

Posted by GitBox <gi...@apache.org>.
Harbs commented on issue #1170:
URL: https://github.com/apache/royale-asjs/issues/1170#issuecomment-997450678


   Not sure what I mean either, but what happens if it's *supposed* to on the element and not on the Royale component? Not sure if it makes a difference.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] greg-dove commented on issue #1170: Some JS events are being dispatched as Royale events but received as native events

Posted by GitBox <gi...@apache.org>.
greg-dove commented on issue #1170:
URL: https://github.com/apache/royale-asjs/issues/1170#issuecomment-997452345


   At the moment there are conversions from browser events into Royale events based on constructor name for things like MouseEvent, KeyboardEvent. These probably only work for browser/user generated events I think.
   And for outbound events (dispatched manually from Royale code), if they have an event-type name that is also 'native' (like 'change' or 'mouseup' for example) they are created as native browser events (always 'Event', never anything specific like 'MouseEvent' in this case I think) and sent through the dom. I don't know whether this approach is needed in all cases to create expected behavior or state change in native browser components for example, but that is how it is done currently, and I assume that is the reason behind it. And I haven't changed this behavior. I just added the Royale event to tag along with the browser event so that it can be retrieved for its royale listeners in the listener override.
   
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org