You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
if you are using obj.click = ...; this is just forwarding the function to the inner container.
For click events in PIXI-UI you can try this.
var clickEvent = new PIXI.UI.Interaction.ClickEvent(object, hover?, rightclick?, doubleClick?);
object = the object which needs interaction,
hover = boolean (trigger hover events),
rightclick = boolean (right click event?)
doubleClick = boolean (double click event?)
then you can do
clickEvent.onPress = function (event, isPressed) { ... };
clickEvent.onClick = function (event) { ... };
clickEvent.onHover = function (event, over) { ... }; (only triggered with hover = true on clickEvent)
clickEvent.onMove = function (event) { ... }; (only triggered with hover = true on clickEvent)
PIXI.UI.Interaction also contains DragEvent for dragging and MouseScrollEvent for scrolling :)
Click events do not work on mobile devices. Perhaps requires a new feature; Is there a guide to contribute code to PIXI-UI
The text was updated successfully, but these errors were encountered: