Skip to content

Commit a8e235c

Browse files
committed
Merge pull request #297 from rjwright/removeCancelBugWorkaround
M41 has gone stable so now we can cancel native players that are filling...
2 parents 8422437 + b8dc873 commit a8e235c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/web-animations-next-player.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,7 @@
168168
// TODO: child players??
169169
},
170170
cancel: function() {
171-
// FIXME: These currentTime manipulations are a workaround for
172-
// https://github.com/web-animations/web-animations-next/issues/278.
173-
// Remove when Chrome 41 goes stable.
174-
var currentTime = this.currentTime;
175-
this.currentTime = this.source.activeDuration ? this.source.activeDuration / 2 : 1;
176171
this._player.cancel();
177-
this.currentTime = currentTime;
178172
this._register();
179173
this._removePlayers();
180174
},

0 commit comments

Comments
 (0)