From 897dd8431582962dd38b7f120168e9ceceaf87ad Mon Sep 17 00:00:00 2001 From: Leonhard <106322251+leolost2605@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:07:38 +0100 Subject: [PATCH] DragDropAction: Fix actor_clicked emission on touch event (#2097) Co-authored-by: Leo --- lib/DragDropAction.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DragDropAction.vala b/lib/DragDropAction.vala index 7e8e77ba..c1606522 100644 --- a/lib/DragDropAction.vala +++ b/lib/DragDropAction.vala @@ -229,7 +229,7 @@ namespace Gala { // release has happened within bounds of actor if (clicked && x < ex && x + actor.width > ex && y < ey && y + actor.height > ey) { - actor_clicked (event.get_button ()); + actor_clicked (event.get_type () == BUTTON_RELEASE ? event.get_button () : Clutter.Button.PRIMARY); } if (clicked) {