Method: mouseWheel

Gets / sets the callback that is fired when a mouse wheel event is triggered.
mouseWheel (Function callback)
  • Functioncallback
Returns *

Hook the mouse wheel event and stop it propagating further down the scenegraph

entity.mouseWheel(function (event, control) {
    // Mouse wheel with button
    console.log('Mouse wheel button: ' + event.button);
    console.log('Mouse wheel delta: ' + event.wheelDelta);

    // Stop the event propagating further down the scenegraph

    // You can ALSO stop propagation without the control object
    // reference via the global reference:
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point