WheelEvent

WheelEvent

package js-html

extends MouseEventUIEventEvent

Available on js

The WheelEvent interface represents events that occur due to the user moving a mouse wheel or similar input device.

Documentation WheelEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new (type:String, ?eventInitDict:WheelEventInit)

Throws:

null DOMError

Variables

read only deltaMode:Int

Returns an unsigned long representing the unit of the delta values scroll amount. Permitted values are:

Constant Value Description
DOM_DELTA_PIXEL 0x00 The delta values are specified in pixels.
DOM_DELTA_LINE 0x01 The delta values are specified in lines.
DOM_DELTA_PAGE 0x02 The delta values are specified in pages.

read only deltaX:Float

Returns a double representing the horizontal scroll amount.

read only deltaY:Float

Returns a double representing the vertical scroll amount.

read only deltaZ:Float

Returns a double representing the scroll amount for the z-axis.

Static variables

static inline read only DOM_DELTA_LINE:Int = 1

static inline read only DOM_DELTA_PAGE:Int = 2

static inline read only DOM_DELTA_PIXEL:Int = 0

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/WheelEvent.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部