[gpm]Synaptics patch 7 (new)
Peter Berg Larsen
pebl@math.ku.dk
Mon, 10 Jun 2002 05:03:13 +0200 (MET DST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-733231445-1023678193=:24175
Content-Type: TEXT/PLAIN; charset=US-ASCII
On 5 Jun 2002, Troy Schultz wrote:
> > > With patch7 I get the following;
> > > - Press UP directtion, window scrolls up only once(approx 5 lines), does
> > > not continue to scoll, subsequent UP presses do nothing
> > What happens if you do shifts between up and down button?
> I can press UP and get one scroll, if I release and repress UP I get
> nothing.
Try this (simple) patch. It ensures that calculation results in at
least some (part of) scrolling. It reverses the direction of the reported
buttons, and that only one direction is reported.
Peter
--
E-Mail: pebl@math.ku.dk
Real name: Peter Berg Larsen
Where: Department of Computer Science, Copenhagen Uni., Denmark
--0-733231445-1023678193=:24175
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff_synaptics_c_8
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.21.0206100503130.24175@artin.math.ku.dk>
Content-Description:
Content-Disposition: attachment; filename=diff_synaptics_c_8
ZGlmZiAtYyAtcjEuMyBzeW5hcHRpY3MuYw0KKioqIHN5bmFwdGljcy5jCTIw
MDIvMDUvMzEgMjE6MTQ6MzgJMS4zDQotLS0gc3luYXB0aWNzLmMJMjAwMi8w
Ni8xMCAwMjo1NzozMA0KKioqKioqKioqKioqKioqDQoqKiogMjA0LDIwOSAq
KioqDQotLS0gMjA0LDIxMCAtLS0tDQogICovDQogIA0KICANCisgI2luY2x1
ZGUgPG1hdGguaD4gICAgICAgICAgICAgICAgLyogY2VpbCAqLw0KICAjaW5j
bHVkZSA8c3RkaW8uaD4NCiAgI2luY2x1ZGUgPHN0ZGxpYi5oPg0KICAjaW5j
bHVkZSA8dW5pc3RkLmg+DQoqKioqKioqKioqKioqKioNCioqKiA5NDksOTY1
ICoqKioNCiAgICBpZiAoIHNjcm9sbGlu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