After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 157043 - moving mouse in the near of a border, GtkTextView scroll to early and fast
moving mouse in the near of a border, GtkTextView scroll to early and fast
Status: RESOLVED DUPLICATE of bug 50233
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.4.x
Other All
: Normal major
: ---
Assigned To: gtk-bugs
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2004-11-01 15:58 UTC by Keywan Najafi Tonekaboni
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description Keywan Najafi Tonekaboni 2004-11-01 15:58:21 UTC
i use most times drag and drop to move part of an text to another place in the
same or another document. but if the target is near the border gedit start to
scroll. this is not a problem, but it scroll with a horrable speed (50lines/s)
and not only at the last line, it start scrolling at 5 lines before border.

scrolling and marking the text with the mouse is no problem, speed an reaction
are nearly perfect.
Comment 1 Paolo Maggi 2004-11-01 16:39:20 UTC
Yep, you are right.
I can reproduce it with gedit 2.8.x and gtk+ 2.4.x (both compiled from CVS)

[paolo@elilix gedit]$ pkg-config --modversion gtk+-2.0
2.4.14

This bug is not due to gedit, but it is a gtk+ (GtkTextView) problem.
Comment 2 Owen Taylor 2004-11-01 18:35:21 UTC
Scrolling before the border is inevitable... the widget doesn't get
DND events when the mouse isn't over the text area. Speed, algorithm,
and height of the scrolled region is tweakable, especially if there is
a volunteer who wanted to experiment. 

See gtk_text_view_drag_motion().
Comment 3 Tomislav Jonjic 2004-11-03 17:33:47 UTC
I have attached a patch to <a
href="http://bugzilla.gnome.org/show_bug.cgi?id=50233">
bug 50233 </a> that addresses both scrolling on selection and DND. 
It adds accelerated scrolling to GtkTextView, that is it makes the scrolling 
speed a function of the distance from the window border. In the case of DND, the 
scrolling speed varies from a minimum at the inner margin of the scroll area to 
a maximum value at the window border. Comments are welcome.
Comment 4 Matthias Clasen 2004-11-26 07:04:34 UTC

*** This bug has been marked as a duplicate of 50233 ***