Capture touch events on specific layers. Note that layers must be enabled and have an opacity larger than 0 to receive touches.
Detect Double Tap or Long Press with additional patches.
Use the Touch button on a layer to quickly add interactions.
捕獲特定層的觸摸事件蛉迹。注意圖層必須啟用扳埂,不透明度大于0且接收觸摸菌瘪。
檢測 Double Tap 模塊或 Long Press 模塊和額外的模塊拾酝。
使用圖層上的 Touch 按鈕快速添加交互。
輸入口
Layer 圖層
The layer to check for touch interactions. When no layer is specified, the touches on the whole screen are registered.
用來接收觸摸交互。沒有指定圖層時(shí),點(diǎn)擊整個(gè)屏幕觸發(fā)交互。
Enable 啟用
A boolean that is true when touch detection is on. To disable interactions on this layer, disable it.
觸摸檢測開啟時(shí)布爾值為真恒削。要禁用圖層的交互只需要禁用這就行。
輸出口
Down 按下
A boolean that is true when there is a touch on the layer.
觸摸按下圖層時(shí)布爾值為真帝际。
Tap 點(diǎn)擊
A pulse that represents the moment a touch has been released from the layer (touch up) as long as the touch is inside of the layer and hasn't moved.
一個(gè)脈沖蔓同,按下-松開,松開時(shí)激活交互蹲诀,在層內(nèi)按下且在層內(nèi)松開斑粱。
Position 位置
The position of the touch, relative to the center of the layer's parent group or device
觸摸的位置,相對于該層的父組或設(shè)備的中心脯爪。
Force 力度
A number between 0 and 1 that represents the force of the touch.
0~1之間的數(shù)字代表觸摸的力度则北。
Related Patches 相關(guān)模塊
HoverDouble TapLong PressScrollMouseTouchesTrackpad
Related Learn Content 相關(guān)學(xué)習(xí)內(nèi)容
Adding Logic
Add logic to your transitions and flows.
Screen Transitions
Create screen flows.
Getting Started
An introduction to using Origami Studio.
Related Examples 案例
Instagram Boomerang
Transition between screens and scrolls in Boomerang.
Instagram Direct Messages
Send an Instagram direct message to a friend, over and over again.
Instagram Notifications
Switch between notifications with animation.
Messenger Photo View
Animate a photo between conversation and lightbox.
Photo Zoom
Animate between two states when the screen is tapped.
Traffic Light
Transition across three or more states and include logic.