DragDropAction: Fix actor_clicked emission on touch event (#2097)

Co-authored-by: Leo <lenemter@gmail.com>
This commit is contained in:
Leonhard 2024-11-01 10:07:38 +01:00 committed by GitHub
parent cb6f645cf2
commit 897dd84315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {