interactive/transitions: Jump to middle-click coordinates
Middle click will update an existing transition while in flight, and skip it.
This commit is contained in:
parent
24d43cd076
commit
2355b57aab
@ -75,6 +75,10 @@ on_button_press (ClutterActor *actor,
|
|||||||
clutter_text_set_text (CLUTTER_TEXT (easing_mode_label), text);
|
clutter_text_set_text (CLUTTER_TEXT (easing_mode_label), text);
|
||||||
g_free (text);
|
g_free (text);
|
||||||
}
|
}
|
||||||
|
else if (event->button == CLUTTER_BUTTON_MIDDLE)
|
||||||
|
{
|
||||||
|
clutter_actor_set_position (rectangle, event->x, event->y);
|
||||||
|
}
|
||||||
else if (event->button == CLUTTER_BUTTON_PRIMARY)
|
else if (event->button == CLUTTER_BUTTON_PRIMARY)
|
||||||
{
|
{
|
||||||
ClutterAnimationMode cur_mode;
|
ClutterAnimationMode cur_mode;
|
||||||
@ -92,7 +96,7 @@ on_button_press (ClutterActor *actor,
|
|||||||
clutter_actor_restore_easing_state (rectangle);
|
clutter_actor_restore_easing_state (rectangle);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return CLUTTER_EVENT_STOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user