jQuery UI Widgets Forums Grid Prevent mousewheel bubbling

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  mkrajew 8 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Prevent mousewheel bubbling #75946

    mkrajew
    Participant

    I like how the grid scrolls vertically when the cursor is over it, however I would like to prevent the grid from bubbling the mouse wheel event back to the window. It ends up making the page scrolling awkward when we reach the last grid row (or first when scrolling up) because we get a lot of unnecessary movement. Is there a way to prevent the event bubbling for this, or a way to hook into the mousewheel event directly to prevent this?

    I’ve tried capturing the mousewheel event on the grid’s container and it doesn’t fire.

    Prevent mousewheel bubbling #75957

    Peter Stoev
    Keymaster

    Hi mkrajew,

    It should be in that way by design. Mouse wheel will be captured by the Grid only if it is necessary. Otherwise, it will bubble up. If you would like, you can turn off our mouse wheel behavior through its property.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Prevent mousewheel bubbling #75984

    mkrajew
    Participant

    Hi Peter. My question is how do I stop it from bubbling up? I want the grid to completely handle mouse wheel events when the cursor is over it.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.