Skip to content
  • Emmanuele Bassi's avatar
    click-action: Add support for long press detection · 23a9980c
    Emmanuele Bassi authored
    A long press is a special form of click action; the default
    implementation uses a single signal with multiple states: query, action
    and cancel. On click we use the "query" state to check whether the
    ClutterClickAction supports long presses; if the callback returns TRUE
    then we install a timeout and we either emit the "activate" state when
    the timeout expires or we emit the "cancel" state if the pointer leaves
    the actor, or if the pointer moves outside a certain threshold. If the
    long press reached the "activate" state then we skip the clicked signal
    emission.
    23a9980c