Shape gesture callbacks.