The manakai project

Web::DOM::WheelEvent

The DOM WheelEvent object

DESCRIPTION

The Web::DOM::WheelEvent class implements the DOM WheelEvent interface.

METHODS

In addition to the methods of the Web::DOM::Event, Web::DOM::UIEvent, and Web::DOM::MouseEvent classes, following methods are available:

$int = $ev->delta_mode

Return the scroll delta mode. [DOM3EVENTS]

$number = $ev->delta_x
$number = $ev->delta_y
$number = $ev->delta_z

Return the amount of the delta. [DOM3EVENTS]

The new method of the Web::DOM::RelatedEvent class accepts the delta_mode, delta_x, delta_y, and delta_z name/value pairs in its second arguments, in addition to the name/value pairs for Web::DOM::Event, Web::DOM::UIEvent, and Web::DOM::MouseEvent objects. [UIEVENTS]

CONSTANTS

Constants are exported from the Web::DOM::WheelEvent module by default. Following constants are used by the delta_mode method [DOM3EVENTS]:

  DOM_DELTA_PIXEL DOM_DELTA_LINE DOM_DELTA_PAGE

SPECIFICATIONS

DOM3EVENTS

DOM Level 3 Events <http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-uievents>.

UIEVENTS

UI Events <https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm#constructor-uievent>.

SEE ALSO

Web::DOM::Event, Web::DOM::UIEvent, Web::DOM::MouseEvent.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.