diff --git a/source/Ox.UI/js/Core/Element.js b/source/Ox.UI/js/Core/Element.js index 6d88e764..6f2bfa2d 100644 --- a/source/Ox.UI/js/Core/Element.js +++ b/source/Ox.UI/js/Core/Element.js @@ -66,6 +66,12 @@ Ox.Element Basic UI element object on mouseleave or mouseup (this fires like a key that is being pressed and held, and is useful for buttons like scrollbars arrows that need to react to both clicking and holding) + mousewheel mousewheel + Fires on mousewheel scroll or trackpad swipe + deltaFactor Original delta = normalized delta * delta factor + deltaX Normalized horizontal scroll delta in px + deltaY Vertical scroll delta in px + * <*> Original event properties singleclick singleclick Fires 250 ms after mouseup, if there was no subsequent mousedown (this is useful if one wants to listen for both singleclicks and @@ -87,7 +93,10 @@ Ox.Element = function(options, self) { // create public object var that = new Ox.JQueryElement($(self.options.element || '
')) .addClass('OxElement') - .on({mousedown: mousedown}); + .on({ + mousedown: mousedown, + mousewheel: mousewheel + }); if (self.options.element == '