gestureContainer([ touchChild ], { onTouchDown: (event: { x: number, y: number }) => { modal(context).toast("onTouchDown x=" + event.x + " y=" + event.y) }, onTouchMove: (event: { x: number, y: number }) => { touchChild.x = event.x - 50 touchChild.y = event.y - 50 }, onTouchUp: (event: { x: number, y: number }) => { modal(context).toast("onTouchUp x=" + event.x + " y=" + event.y) }, onTouchCancel: (event: { x: number, y: number }) => { modal(context).toast("onTouchCancel x=" + event.x + " y=" + event.y) } }).apply({ layoutConfig: layoutConfig().just().configAlignment(Gravity.Center), width: 300, height: 300, backgroundColor: Color.BLACK }),
|