mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
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:
parent
398793d1a0
commit
d7ec1156e2
3 changed files with 46 additions and 16 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue