Skip to main content
Edge Pan Trigger

A single or continuous trigger that fires when the user pans from an edge of the device screen.

Updated over a week ago

Overview

An Edge Pan trigger fires when the user moves their finger across the screen, starting from one of the device's edges. Edge Pan triggers can fire once when the pan begins, continuously while the user pans, or once when the pan gesture ends.

The difference between an Edge Pan trigger and a Pan trigger is whether the pan begins at the edge of the screen or elsewhere on the screen.


Trigger Properties

State

Set the trigger to fire when the edge pan begins, while panning, or when the pan ends:

  • Began: Fires once when the user begins a pan gesture from the device's edge.

  • While Panning: Fires continuously as the user moves their finger.

  • Ended: Fires once when the user stops panning.

Edge

Set if the trigger should fire when the pan starts from the Top, Bottom, Left, or Right edge.

Is Enabled

Set if the trigger should fire when the trigger's conditions are met.


Expression Editor Properties

Delta X

trigger.deltaX

Distance your finger moves horizontally from A to B.

Delta Y

trigger.deltaY

Distance your finger moves vertically from A to B.

Location X

trigger.locationX

Horizontal location of your finger in relation to the object the trigger is on.

Location Y

trigger.locationY

Vertical location of your finger in relation to the object the trigger is on.

Translation X

trigger.translationX

Horizontal distance of the pan: Left (-) and Right (+).

Translation Y

trigger.translationY

Vertical distance of the pan: Left (-) and Right (+).

Velocity X

trigger.translationX

Horizontal velocity of your finger while panning.

Velocity Y

trigger.translationY

Vertical velocity of your finger while panning.

Translation Percent X

trigger.translationX

Percent based on the distance the user pans vertically within the boundary of the object the trigger is on. This is a 0 - 1 value.

Translation Percent Y

trigger.translationY

Percent based on the distance the user pans vertically within the boundary of the object the trigger is on. This is a 0 - 1 value.

Is Enabled

trigger.isEnabled

Whether the trigger is enabled or disabled.


Resources

Projects

Videos

Did this answer your question?