Skip to content

Commit

Permalink
Merge pull request #200 from xftroxgpx/fix198_2
Browse files Browse the repository at this point in the history
speed inc. from 0.06 to 0.10 not to 0.16, fixes #198
  • Loading branch information
igrigorik committed Apr 11, 2017
2 parents f9d4e55 + d36a82e commit bfac777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inject.js
Expand Up @@ -296,7 +296,7 @@ chrome.extension.sendMessage({}, function(response) {
} else if (action === 'faster') {
// Maximum playback speed in Chrome is set to 16:
// https://cs.chromium.org/chromium/src/media/blink/webmediaplayer_impl.cc?l=103
var s = Math.min(v.playbackRate + tc.settings.speedStep, 16);
var s = Math.min( (v.playbackRate < 0.1 ? 0.0 : v.playbackRate) + tc.settings.speedStep, 16);
v.playbackRate = Number(s.toFixed(2));
} else if (action === 'slower') {
// Audio playback is cut at 0.05:
Expand Down

0 comments on commit bfac777

Please sign in to comment.