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 93f4d0f commit 0722559Copy full SHA for 0722559
src/subtitles-octopus.js
@@ -409,6 +409,8 @@ var SubtitlesOctopus = function (options) {
409
if (self.renderAhead > 0) {
410
var newCache = [];
411
if (isResizing && self.oneshotState.prevHeight && self.oneshotState.prevWidth) {
412
+ if (self.oneshotState.prevHeight == self.canvas.height &&
413
+ self.oneshotState.prevWidth == self.canvas.width) return;
414
var timeLimit = 10, sizeLimit = self.renderAhead * 0.3;
415
if (self.canvas.height >= self.oneshotState.prevHeight * (1.0 - self.resizeVariation) &&
416
self.canvas.height <= self.oneshotState.prevHeight * (1.0 + self.resizeVariation) &&
0 commit comments