PadCodedocs

When Long-Pressed

Runs actions when it's touched and held, for half a second unless you set Hold For.

When Long-Pressed added to a view, with its row open under All modifiers.

Group: Input and event · Works on: Every view

#Add it

Select the view, open the Inspector's Style tab, open All modifiers at the bottom and tap Add modifier. Search for “When Long-Pressed” and tap it. Its row opens under All modifiers, with its settings.

It's the same as choosing When Long-Pressed in the Actions tab: When the view is touched and held. See Triggers.

#Settings

SettingWhat it does
Hold ForHow long to hold, in seconds, like 1. Empty is half a second.
PerformThe actions to run. Edit them in the Actions tab.

#Change, move or remove it

Tap the modifier's row under All modifiers to open or close its settings. Its ⋯ menu has Move Up, Move Down and Remove.

Order matters: modifiers apply top to bottom, so padding before a background makes the background bigger.

#See also