[Xorg] [PATCH] allow EmulateWheel to generate normal clicks too

Dermot McGahon dermot at dspsrv.com
Wed Sep 8 02:57:19 PDT 2004


On Sun, 15 Aug 2004 16:06:15 -0400, Andrew Pimlott <andrew at pimlott.net>  
wrote:

> One way to get both advantages might be to have a threshold of pixels
> moved while the button was down, below which we create a click.  This
> could be combined with a timeout: click if the button is released in
> time, and the mouse hasn't moved very far.  Personally, I find timeouts
> somewhat unintuitive, so I would rather just judge by motion.  But maybe
> this doesn't work for everyone.

Motion may not work for laptop trackpads. Timeouts may not be a great
solution if the value is set too high. Set a low timeout and also use
a motion hysteresis:

   Below a certain motion level, within the timeout period   ==> click
   Above a certain motion level, within the timeout period   ==> scroll
   Below a certain motion level, outside the timeout period  ==> scroll
   Above a certain motion level, outside the timeout period  ==> scroll

This might work. It needs experimentation. In particular, a low timeout
value is going to lead to scrolling when mouse click was the intended
behaviour.

This allows the motion variable to dominate. It's equally possible to
let the timer dominate, in which case, change the scroll in the second
combination above to a click. This would allow even a mouse in constant
motion to be able to click ..


Dermot.
--



More information about the xorg mailing list