Skip to content

Commit

Permalink
Try to fix animations flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAMan committed Mar 23, 2020
1 parent 9dd6eb2 commit e1604cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subtitles-octopus.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ var SubtitlesOctopus = function (options) {
if ((data.emptyFinish > 0 && data.emptyFinish - data.eventStart < 1.0 / self.targetFps) || data.animated) {
var newFinish = data.eventStart + 1.0 / self.targetFps;
data.emptyFinish = newFinish;
data.eventFinish = (data.eventFinish > newFinish) ? newFinish : data.eventFinish;
data.eventFinish = newFinish;
}
self.renderedItems.push({
eventStart: data.eventStart,
Expand Down

0 comments on commit e1604cb

Please sign in to comment.