forked from 0x2620/oxjs
fix documentation, remove print statement
This commit is contained in:
parent
53cbceada4
commit
987c7ea801
1 changed files with 1 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ Ox.Element <f> Basic UI element object
|
||||||
Fires on mousewheel scroll or trackpad swipe
|
Fires on mousewheel scroll or trackpad swipe
|
||||||
deltaFactor <n> Original delta = normalized delta * delta factor
|
deltaFactor <n> Original delta = normalized delta * delta factor
|
||||||
deltaX <n> Normalized horizontal scroll delta in px
|
deltaX <n> Normalized horizontal scroll delta in px
|
||||||
deltaY <n> Vertical scroll delta in px
|
deltaY <n> Normalized vertical scroll delta in px
|
||||||
* <*> Original event properties
|
* <*> Original event properties
|
||||||
singleclick <!> singleclick
|
singleclick <!> singleclick
|
||||||
Fires 250 ms after mouseup, if there was no subsequent mousedown
|
Fires 250 ms after mouseup, if there was no subsequent mousedown
|
||||||
|
|
@ -245,7 +245,6 @@ Ox.Element = function(options, self) {
|
||||||
deltaX = -deltaY;
|
deltaX = -deltaY;
|
||||||
deltaY = 0;
|
deltaY = 0;
|
||||||
}
|
}
|
||||||
Ox.print('MOUSEWHEEL', e, deltaX, deltaY)
|
|
||||||
if (deltaX || deltaY) {
|
if (deltaX || deltaY) {
|
||||||
absDelta = Math.max(Math.abs(deltaY), Math.abs(deltaX));
|
absDelta = Math.max(Math.abs(deltaY), Math.abs(deltaX));
|
||||||
if (!self._deltaFactor || self._deltaFactor > absDelta) {
|
if (!self._deltaFactor || self._deltaFactor > absDelta) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue