I figured it out how to remove mousewheel event for an object.

But still it would be nice to have mousewheel event for focused inputs
only. What people do think about it?

        /**
         * Removes all listeners
         * @param {Object} obj
         * @param {String} type event type
         */
        __removeListeners: function (obj, type)
        {
            var listeners =
qx.event.Registration.getManager(obj).getListeners(obj, type);
            if (listeners)
                for (var i = 0; i < listeners.length; i++)
                    obj.removeListener(type, listeners[i].handler, obj);
        }

Ian Horst


Ian Horst wrote:
> When qx.ui.form.SelectBox (for example) is inside qx.ui.container.Scroll
> and when mouse is over input field and wheel scrolls , they both scroll
> as they both listen to event "mousewheel".
>
> Expected behaviour:
> Only focused input can scroll.
>
> How to remove all "mousewheel" listeners from object?
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to