Project

General

Profile

block the scroll to do someting cooler with the "Wheel"

Added by Marcel Tella about 14 years ago

Hi!

I'm trying to do something with the wheel.

I've got a WContainerWidget, very long, so I have a vertical scroll. But inside it, I've got an image. I'd like to enable the wheel function over the image, and I've achieved this, but when I move the wheel, the page scrolls down or up too. I don't want the page to move up or down, is there any way to disable the scroll just when someone moves the wheel over my image?

Than you very much!


Replies (1)

RE: block the scroll to do someting cooler with the "Wheel" - Added by Wim Dumon about 14 years ago

See the documentation of Wt::EventSignalBase::preventPropagation() (and maybe its brother Wt::EventSignalBase::preventDefaultAction())

    (1-1/1)