GNOME Bugzilla – Bug 171004
drag to scroll
Last modified: 2005-07-26 12:33:45 UTC
It should possible to scroll the page with mouse by dragging the page rather than reaching out for those tiny scrollbars.
Created attachment 38964 [details] [review] proposed patch Use middle mouse button for scrolling. Added new set of variables rather than reusing existing ones to keep them clearly separated. It should probably be checked more closely whether the drag threshold should be checked, also the cursor should be changed to something more appropriate while dragging.
Sweet! Tommi could you check that your patch still syncs up with the latest in HEAD. We've just merged in the threads branch.
Created attachment 39179 [details] [review] rediffed against HEAD Only one chunk needed tweaking. Seems to compile and scroll a little, but I can't test it properly as HEAD breaks with 'Xlib: unexpected async reply (sequence 0x1234)' or simply crashes.
I got 'Xlib: unexpected async reply (sequence 0x####) with HEAD (unpatched) too.
/* XXX do we want to check the threshold, or scroll regardless? */ Bryan what do you think about this? I'd say check the thresold Tommi, is this working correctly now?
Created attachment 39843 [details] [review] rediffed again Patch against 0.2.0, seems to apply cleanly against HEAD as well. Scrolling works, though compared to 0.1.9 it is now much more lagging. Whereas with 0.1.9 dragging was pretty much instantaneous, with 0.2.0 there's a noticeable lag between cursor movement and page scrolling. Probably because of the locking needed for the new threading model.
Marco, I agree
I reworked this a bit, fixed the FIXME and checked in. Thanks!
This seems to be broken in 0.3.0 (debian unstable version) All mouse buttons are wired to select region.
Stephen, this was fixed in 0.3.0, middle button (or left+right button simultaneously) should do the work. Can you test once again, please check that you are using exactly 0.3.0 version or better even latest evince version.
I would like to put in my 2 cents worth ;) : Given that 1) Evince is meant to be a pervasive "oooohh... I didn't even know I was using tool X" type of appp 2) Most folks are still used to using acr*read Could we get an _option_ of having the left mouse button to drag? For instance, have two modes: view mode: left mouse button drags, middle highlights edit mode: left hightlights, middle drags Heim? That's my 2 cents worth, Mike
We have been trying to stay away from modes and switching mouse buttons behavior doesnt seem like a strong reason to introduce them... though up to Bryan.
Marking as fixed on the base of #10