[nSLUG] Fast scroll wheel action in X triggers paste or browser history navigation

D G Teed donald.teed at gmail.com
Wed Aug 15 22:00:54 ADT 2007


On 8/15/07, D G Teed <donald.teed at gmail.com> wrote:
> There is a program which will capture Xevents.  Forget the name
> right now, but I think I'll run that and possibly submit a bug report.

Thanks to everyone who supplied the memory jog re: xev.

When I scroll down or up continuously, I get the button 4 or 5
repeatedly. However when I switch scroll directions, xev records button
events on 2 and 3 (as if middle and right mouse button were clicked)
before showing events button 4 or 5 as expected, but I'm not that clumsy.

I guess it seemed like fast scrolling was typically associated
with the problem, because it stopped the scroll and moved
it a notch in the opposite direction, triggering the false middle
mouse click shown by xev.  I can see the bogus button 2
and 3 events even when scrolling slowly and changing the
direction.  First I list the normal output for button 2 and 3...

Normal Button 2 click:

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814180178, (7,153), root:(804,177),
    state 0x0, button 2, same_screen YES

ButtonRelease event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814180822, (7,153), root:(804,177),
    state 0x200, button 2, same_screen YES


Normal Button 3 click:

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814181961, (7,153), root:(804,177),
    state 0x0, button 3, same_screen YES

ButtonRelease event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814182457, (7,153), root:(804,177),
    state 0x400, button 3, same_screen YES


Scroll wheel reverse direction (done slowly, no clicking):

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814189045, (7,153), root:(804,177),
    state 0x0, button 5, same_screen YES

ButtonRelease event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814189045, (7,153), root:(804,177),
    state 0x1000, button 5, same_screen YES

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814189515, (7,153), root:(804,177),
    state 0x0, button 5, same_screen YES

ButtonRelease event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814189515, (7,153), root:(804,177),
    state 0x1000, button 5, same_screen YES

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814190258, (7,153), root:(804,177),
    state 0x0, button 2, same_screen YES

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814190258, (7,153), root:(804,177),
    state 0x200, button 3, same_screen YES

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814190258, (7,153), root:(804,177),
    state 0x600, button 4, same_screen YES

ButtonRelease event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814190258, (7,153), root:(804,177),
    state 0xe00, button 4, same_screen YES

ButtonPress event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814190778, (7,153), root:(804,177),
    state 0x600, button 4, same_screen YES

ButtonRelease event, serial 30, synthetic NO, window 0xa00001,
    root 0x4c, subw 0x0, time 1814190779, (7,153), root:(804,177),
    state 0xe00, button 4, same_screen YES

I've got something more to google and then maybe report.

--Donald



More information about the nSLUG mailing list