Skip to content

Commit

Permalink
If starting in thumbnail mode, switch to 1up.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbot committed Sep 30, 2010
1 parent ef6b459 commit 8efc981
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BookReader/BookReader.js
Expand Up @@ -3826,6 +3826,8 @@ BookReader.prototype.ttsToggle = function () {
//______________________________________________________________________________
BookReader.prototype.ttsStart = function () {
if (soundManager.debugMode) console.log('starting readAloud');
if (this.constModeThumb) this.switchMode(this.constMode1up);

this.ttsPlaying = true;
this.ttsIndex = this.currentIndex();
this.ttsFormat = 'mp3';
Expand Down Expand Up @@ -4067,7 +4069,6 @@ BookReader.prototype.ttsPrefetchAudio = function () {
//for a short page, preload might nt have yet returned..
if (soundManager.debugMode) console.log('preloading chunk 0 from next page, index='+(this.ttsIndex+1));
if (null != this.ttsNextChunks) {
console.log(this.ttsNextChunks);
if (0 != this.ttsNextChunks.length) {
this.ttsLoadChunk(this.ttsIndex+1, 0, this.ttsNextChunks[0][0]);
} else {
Expand Down

0 comments on commit 8efc981

Please sign in to comment.