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 576952 - Allow scroll wheel scrolling during DND
Allow scroll wheel scrolling during DND
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkScrolledWindow
2.16.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
scrolling
Depends on:
Blocks: 434193
 
 
Reported: 2009-03-27 13:15 UTC by Nelson Benitez
Modified: 2018-05-02 14:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Patch to allow pass-by of scroll events from DND to drag destintation widget (3.87 KB, patch)
2009-03-27 13:16 UTC, Nelson Benitez
none Details | Review

Description Nelson Benitez 2009-03-27 13:15:03 UTC
Please describe the problem:
Hi,
nautilus bug 434193 wants to be able to scroll the destination window/folder when DND'ing a file in nautilus. This is currently not possible because gtk+ grabs keyboard when DND (see bug 390312), but although gtk grabs the scroll event on dnd, there's no reason why it should not resend it to the widget that is the drag destination.

That is what my patch does, listens to scroll events on DND and resend the event to the drag destination widget. For some limitations this only works when the source and destinations widgets belongs to same application, although could be different windows, like in the nautilus case. 

I think this is good enough as it fullfils the nautilus use case which happens to be the most common.

Steps to reproduce:
1. Open two nautilus windows representing two folders, make sure second folder has enough files so the window has scrollbars.
2. Drag some file from first window to second window.
3. Now (without releasing the mouse button 1 and so dropping the file) use the mouse scrollwheel to scroll the second window content, so you can reach some unseen folder where to drop the file.


Actual results:
Nothing happens, mousewheel scroll events are ignored.

Expected results:
The nautilus window should receive the mouse wheel scroll events and thus scroll the content of the window.

Does this happen every time?
yes

Other information:
Comment 1 Nelson Benitez 2009-03-27 13:16:47 UTC
Created attachment 131496 [details] [review]
Patch to allow pass-by of scroll events from DND to drag destintation widget
Comment 2 Nelson Benitez 2009-03-27 13:25:09 UTC
When you test the patch in comment 1 with nautilus in icon view or compact view, you'll possibly see some black lines, that's a small nautilus bug for which I also put a patch in the blocked bug 434193. 

This paint problem does not happen in nautilus list view or in other applications (I tested gthumb thumbnails view).
Comment 3 Matthias Clasen 2018-02-10 05:24:31 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 4 Christian Stadelmann 2018-02-10 10:07:35 UTC
Still present in Gtk+ 3.22.26.
Comment 5 GNOME Infrastructure Team 2018-05-02 14:41:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/314.