Skip to content

Commit 897dd84

Browse files
DragDropAction: Fix actor_clicked emission on touch event (#2097)
Co-authored-by: Leo <[email protected]>
1 parent cb6f645 commit 897dd84

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
@@ -229,7 +229,7 @@ namespace Gala {
229229

230230
// release has happened within bounds of actor
231231
if (clicked && x < ex && x + actor.width > ex && y < ey && y + actor.height > ey) {
232-
actor_clicked (event.get_button ());
232+
actor_clicked (event.get_type () == BUTTON_RELEASE ? event.get_button () : Clutter.Button.PRIMARY);
233233
}
234234

235235
if (clicked) {

0 commit comments

Comments
 (0)