Repository navigation
Element Events
Shane Brinkman-Davis edited this page Mar 21, 2016
·
2 revisions
This page covers the core events for Art.Engine.Element. Other Element types may have their own custom events.
NOTE: pointer* events happen with touches or mice when buttons are down. mouse* events only happen on PCs with the mouse moves with no button down. NOTE: On mobile, each touch gets its own set of pointer* events. Each touch has its own unique ID so you can track it. See the demos/paint.
- pointerCancel
- pointerDown
- pointerUp
- pointerMove
- pointerMoveOut
- pointerMoveIn
- pointerClick
- pointerUpInside
- pointerUpOutside
- mouseOut
- mouseIn
- mouseMove
- focus
- blur
There are various events which fire in response to changes of state in the AIM.
- keyPress
- keyUp
- keyDown
supported, but haven't been tested in a LONG time... may need updating
- dragOver
- dragEnter
- dragLeave
- drop
- parentChanged
- props: parent, oldParent
- rootElementChanged
- props: rootElement, oldRootElement
- sizeChanged
- props: oldSize, size
- absMatriciesChanged
- ready
- element props changed and have now been updated