[mcclim-devel] mouse wheel gesture?

Ralf Mattes rm at mh-freiburg.de
Mon Dec 27 18:24:28 UTC 2010


On Wed, 22 Dec 2010 11:24:25 +0100, Orm Finnendahl wrote:

Hi Orm, just a quick follow-up ....

> hmm, can't make it work with the mouse wheel.
> 
> This works:
> 
> (define-gesture-name :up :pointer-button-press :middle)
> 
> This doesn't work:
> 
> (define-gesture-name :up :pointer-button-press :wheel-up)

It does work. Unfortunately you place your pane inside of (scrolling ...) 
- and the scoller-pane seems to swallow scroll-wheel events. Leave out 
the (scrolling ...) arround your pane in the layout definition and your 
pane receives scroll events (there's a bug in your presentation-to-
command definition, but that's another problem).

Cheers, RalfD







More information about the mcclim-devel mailing list