User Tools

Site Tools


gestures:touch:simple:spatial:drag-move:4-finger-drag

4-Finger-Drag

(Touch → Spatial → Drag/Move → Four Point Drag Gesture “4-Finger-Drag”)

<Gesture id="4-finger-drag" type="drag">
    <match>
        <action>
            <initial>
                <cluster point_number="4"/>
            </initial>
        </action>
    </match>       
    <analysis>
        <algorithm>
            <library module="translate"/>
            <returns>
                <property id="drag_dx" result="dx"/>
                <property id="drag_dy" result="dy"/>
            </returns>
        </algorithm>
    </analysis>    
    <mapping>
        <update dispatch_type="continuous">
            <gesture_event type="drag">
                <property ref="drag_dx" target="x"/>
                <property ref="drag_dy" target="y"/>
            </gesture_event>
        </update>
    </mapping>
</Gesture>
gestures/touch/simple/spatial/drag-move/4-finger-drag.txt · Last modified: 2015/09/14 16:26 (external edit)