Skip to content

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.

PointerEvents

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 and Blur Events

  • focus
  • blur

State Change Events

There are various events which fire in response to changes of state in the AIM.

KeyEvents

  • keyPress
  • keyUp
  • keyDown

File-Drop Events

supported, but haven't been tested in a LONG time... may need updating

  • dragOver
  • dragEnter
  • dragLeave
  • drop

Family Events

  • parentChanged
    • props: parent, oldParent
  • rootElementChanged
    • props: rootElement, oldRootElement

Misc

  • sizeChanged
    • props: oldSize, size
  • absMatriciesChanged
  • ready
    • element props changed and have now been updated

Clone this wiki locally