Jump to content
GreenSock

VelocityTracker.untrack()

VelocityTracker.untrack( target:Object, props:String ) :

[static] Stops tracking the velocity of certain properties (or all properties of an object), like ones initiated with the track() method.

Parameters

target: Object

the target object whose properties should stop being tracked

props: String

(default = null) — a comma-delimited list of properties to stop tracking. If null, ALL properties of the target will stop being tracked.

 

Details

Stops tracking the velocity of certain properties (or all properties of an object), like ones initiated with the track() method.

//starts tracking "x" and "y":
var tracker = VelocityTracker.track(obj, "x,y");

//stops tracking only the "x" property:
VelocityTracker.untrack(obj, "x");

//stops tracking "x" and "y":
VelocityTracker.untrack(obj, "x,y");

//stops tracking all properties of obj:
VelocityTracker.untrack(obj);
//or you can use the removeProp() method directly on the VelocityTracker instance to remove one at a time:
tracker.removeProp("x");
Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×