Refactor: Setup and handle all of DND scroll. in #setupDNDScroll func.

Also handle drag events in this function so connecting to "drag-end" in
widgets with "GtkDragSource" and a `globalThis` `ScrollManager` instance
aren't needed.
This commit is contained in:
June 2023-01-24 18:33:15 +01:00
commit d7ec1156e2
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
3 changed files with 46 additions and 16 deletions

View file

@ -81,11 +81,6 @@ var PrefsBoxOrderItemRow = GObject.registerClass({
drag.set_hotspot(this._drag_starting_point_x, this._drag_starting_point_y);
}
onDragEnd() {
// Stop all scrolling, which is due to this DND operation.
scrollManager.stopScrollAll();
}
// Handle a new drop on `this` properly.
// `value` is the thing getting dropped.
onDrop(_target, value, _x, _y) {