Layer.onTouchScaling

Function/Meaning

Enlarged operation

Type
LayerclassEvent
Syntax
onTouchScaling(startdistance, currentdistance, cx, cy, flag)
Arguments
startdistance

The pixel distance when multi-touch is started.

currentdistance

The pixel distance of the touch when the event occurs.

cx

The x-coordinate (in client coordinates) value of the center position.

cy

The y-coordinate (in client coordinates) value of the center position.

flag

Multi-touch status flag.

  • 0x01 : It is set to the first event when multi-touch is started.
Return value
None (void)
Explanation

It occurs when the enlargement operation is performed by multi-touch on the touch panel.
This event occurs on the layer with focus.