mirror of
https://github.com/elementary/gala.git
synced 2024-11-25 03:06:14 +01:00
DragDropAction: Fix actor_clicked emission on touch event (#2097)
Co-authored-by: Leo <lenemter@gmail.com>
This commit is contained in:
parent
cb6f645cf2
commit
897dd84315
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user