FixWheel
Constructor
new FixWheel()
Methods
destroy
destroy() → {Boolean}
destroys the helper. removes the fix if it has been applied
Returns:
should always return false
.
Mainly used for debugging but can be used as a flag.
- Type
- Boolean
fixWheel
fixWheel(e)
the actual fix for the issue.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
e |
Object | mousewheel event Properties
|
init
init(rootNode) → {Boolean}
this method applys the fix for wheel events in browsers with faulty implementation
Parameters:
Name | Type | Description |
---|---|---|
rootNode |
HTMLElement | a DOM node, usually |
Returns:
returns true
when applied, otherwise false
.
Mainly used for debugging but can be used as a flag.
- Type
- Boolean
preventDefault
preventDefault(e)
prevent the default event
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | mousewheel event |