Hi Peter,

I'd like to implement smooth scrolling in the joystick input module. By 
calling 

SetScrollValuator(pDevice, 2, SCROLL_TYPE_VERTICAL, 100, 0);

I can set the scroll resolution of the valuator 2 to 100. As far as I 
understand, I now can send valuator movement that XI2 applications already 
can use for smooth scrolling.

In the case for legacy button scroll events, the server keeps track of the 
accumulated scroll delta and after reaching 100, will generate a XI1/legacy 
scroll button down/up sequence. Is there a way to reset that server internal 
delta to 0 after scrolling stops? It seems that smooth scrolling might leave 
that value at 99, which makes it impossible for me to predict when the next 
legacy button scroll event will happen. 

In the case of the joystick module, where deflecting the axis generates a 
whole scroll unit, followed by smooth scrolling, this results in sometimes 
two units from the start. 

Did I miss something in the API?


Is there any bigger application out there that uses smooth scrolling right 
now? AFAIK, no major browser does. 


Regards,
Sascha

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to