GNOME Bugzilla – Bug 92387
unfriendly drag-n-drop in textview - scrolls too fast
Last modified: 2006-12-25 03:58:33 UTC
Using e.g. testtext, load a file (e.g. 3DRings.xpm), select some lines, then start draging the selection, the following will happen: As soon as you move the mouse on or after line 21, the text is scrolled *very* rapidly. There are two issues here: it seems that the automatic scrolling could probably start 3 or 4 lines later, as most editors do; the scrolling while dragging is too fast for any human being, so it is virtually impossible to drop text at the right place. Arno
Someone would have to experiment to find the values that work best.
Any chance to have this PR looked at rather than postponed ? Arno
Yeah, if you provide a patch.
*** Bug 311832 has been marked as a duplicate of this bug. ***
Bug 50233 also tracks this. I have attached there a (very experimental and quickly hacked) patch that tries to fix scrolling issues in general and this one in particular. I will try to have another look at it.
Ubuntu bug about that: https://launchpad.net/products/gtk/+bug/58345
*** Bug 355980 has been marked as a duplicate of this bug. ***
Created attachment 74499 [details] [review] patch With this patch, when the pointer moves past a threshold near the borders it begins the scrolling, but the scroll speed is relative to the separation between the pointer and the border (the closer to it, the faster). The patch also gets rid of the scrolling code in the drag_motion handler, I never understood very well why should shaking the mouse make scrolling faster during DnD/selection/etc... I've been playing a bit with this patch and IMHO it improves the DnD experience a lot.
An additional thought, it would be nice to make common code for the widgets with native scrolling support
*** Bug 358026 has been marked as a duplicate of this bug. ***
2006-12-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextview.c: Improve the DND scrolling behaviour. (#92387, Carlos Garnacho Parro)