We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e49dcae commit 8bfd8a4Copy full SHA for 8bfd8a4
lib/tc.anim_util.js
@@ -99,19 +99,21 @@
99
return this;
100
};
101
102
- this.pause = function(reset) {
+ this.pause = function() {
103
internal.cycling = false;
104
o.on_pause.apply(me);
105
- if (reset) {
106
- internal.theta = 0;
107
- }
108
109
110
111
this.isCycling = function() {
112
return internal.cycling;
113
114
+ this.reset = function() {
+ internal.theta = 0;
+ return this;
115
+ };
116
+
117
this.setSpeed = function(speed) {
118
if (typeof speed === "number") {
119
internal.speed = speed;
0 commit comments