On Sunday 07 Nov 2004 00:13, Guillaume Laurent wrote: > I've committed something along these lines, based on the > QScrollView's drag autoscroll (although the numbers need fiddling > with).
I find it zips off a bit too fast at the start, and there needs to be an upper bound on the scroll speed. I've committed some changes to the numbers that I find a little better on this machine, see how they go for you. I certainly find the behaviour more stable now though. Another thing: because the code only keeps a record of how close the mouse needs to be to an X or Y edge, rather than _which_ X or Y edge, you can fool it by moving the mouse really quickly from one side of the canvas to the other. E.g. scroll to the right a long way (so as to build up a head of steam) and then quickly zip the mouse over to the left, and you can make it scroll straight back to the start of the piece in one leap. That may seem a bit esoteric, but I only noticed it because it did actually happen for me when I reversed direction a bit too quickly after overshooting on a scroll. Chris ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Rosegarden-devel mailing list [EMAIL PROTECTED] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
