Skip to content

Touch

Overview

Tracks a single touch point

IE guidelines for Touch-friendly sites: http://blogs.msdn.com/b/ie/archive/2012/04/20/guidelines-for-building-touch-friendly-sites.aspx

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class Touch

import { Touch } from 'scenerystack/scenery';

Constructor

new Touch( id : number, point : Vector2, event : Event )

Instance Methods

toString() : string

Returns an improved string representation of this object.

isTouchLike() : boolean

Instance Properties

id : number

For tracking which touch is which

Source Code

See the source for Touch.ts in the scenery repository.