Skip to content

Commit 8ebe29b

Browse files
authored
Merge branch 'main' into lenemter/fix-drag
2 parents d03cd1b + 897dd84 commit 8ebe29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DragDropAction.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ namespace Gala {
290290

291291
// release has happened within bounds of actor
292292
if (clicked && x < ex && x + actor.width > ex && y < ey && y + actor.height > ey) {
293-
actor_clicked (event.get_button ());
293+
actor_clicked (event.get_type () == BUTTON_RELEASE ? event.get_button () : Clutter.Button.PRIMARY);
294294
}
295295

296296
if (clicked) {

0 commit comments

Comments
 (0)