Skip to content

Commit 315bcdb

Browse files
committed
DragDropAction: Fix actor_clicked emission on touch event
1 parent 58fc51c commit 315bcdb

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)