Grab key scrolling

Marco Pesenti Gritti mpg at redhat.com
Tue Apr 17 10:04:57 EDT 2007


On Tue, 2007-04-17 at 09:50 -0400, Eben Eliason wrote:
> > 1 Scroll events can only be horizontal or vertical, you can't move
> > diagonally for example.
> 
> This seems like the biggest issue, as diagonal scrolling is one of the
> main benefits of the grab approach.  Still, I really want something
> mapped to that key.  To clarify, will this even properly generate
> horizontal or vertical events?  Does it really know that left to right
> is different than top to bottom?
> 

The scroll events are simple. They are really mouse ButtonPress events.
Button 4 is up, button 5 is down, button 6 is left and button 7 is
right. In response to these events application scrolls the view by an
arbitrary amount. For gtk apps the amount is specified by the toolkit,
for mozilla it's customizable through preferences.

Marco




More information about the Devel mailing list