Wheel mice and scroll event - up vs down

Hi,

I can react on scrolling events. However, I would like to know whether
the scrolling is UP or DOWN, and I found myself unable to do so.

I was trying to use:
when Gdk::Event::scroll::UP

But it is unknown.

How to find out if a scroll event is up or down?

I am trying to synchronize widgets based on whether a user wants to
scroll up or down.

Thanks.

Le vendredi 04 septembre 2009 à 14:26 +0200, Marc H. a écrit :

Hi,

I can react on scrolling events. However, I would like to know whether
the scrolling is UP or DOWN, and I found myself unable to do so.

I was trying to use:
when Gdk::Event::scroll::UP

But it is unknown.

How to find out if a scroll event is up or down?

Is scroll event generated from mouse ?
I would expect button pressed with correct mask (for buttons 4 and 5)

Hi,

Marc H. schrieb:

Hi,

I can react on scrolling events. However, I would like to know whether
the scrolling is UP or DOWN, and I found myself unable to do so.

I was trying to use:
when Gdk::Event::scroll::UP

But it is unknown.

it’s called Gdk::EventScroll::UP

Cheers, detlef


http://det.cable.nu

it’s called Gdk::EventScroll::UP

Thanks everyone.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs