fix documentation, remove print statement

This commit is contained in:
rolux 2013-12-05 00:14:10 +01:00
parent 53cbceada4
commit 987c7ea801

View file

@ -70,7 +70,7 @@ Ox.Element <f> Basic UI element object
Fires on mousewheel scroll or trackpad swipe
deltaFactor <n> Original delta = normalized delta * delta factor
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
singleclick <!> singleclick
Fires 250 ms after mouseup, if there was no subsequent mousedown
@ -245,7 +245,6 @@ Ox.Element = function(options, self) {
deltaX = -deltaY;
deltaY = 0;
}
Ox.print('MOUSEWHEEL', e, deltaX, deltaY)
if (deltaX || deltaY) {
absDelta = Math.max(Math.abs(deltaY), Math.abs(deltaX));
if (!self._deltaFactor || self._deltaFactor > absDelta) {