Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Event

Screen Hold

Use Screen Hold to execute the next node when someone touches and holds the device screen for over 200 ms. Screen Hold is in the Event category.

Here is an example of the Position coordinates for Screen Hold.

Output

NameData typeDescription
NextExecExecute the next node when someone touches and holds the device screen
DurationNumberThe time of tapping and holding the screen in seconds
PositionVec2The 2D normalized position of the tapping point

Example

↓ ScreenHold.zip

In this example, we use Screen Hold to change the scale of the image (The unit of Duration is millisecond, so you need to divide by 1000 to convert it into seconds). The position of screening hold will update the position of the image as well.

Here, we transform the screen interaction coordinates (left) to 2d transform coordinate (right) of the image by using Remap node so that we can put our image at the place we touch the screen.