starting autoPlay stops TTS, and starting TTS stops autoPlay
authorrajbot <raj@archive.org>
Wed, 20 Oct 2010 20:23:08 +0000 (20:23 +0000)
committerrajbot <raj@archive.org>
Wed, 20 Oct 2010 20:23:08 +0000 (20:23 +0000)
BookReader/BookReader.js

index 2069e7f..ff5e813 100644 (file)
@@ -3101,6 +3101,8 @@ BookReader.prototype.showBookmarkCode = function() {
 //______________________________________________________________________________
 BookReader.prototype.autoToggle = function() {
 
+    this.ttsStop();
+
     var bComingFrom1up = false;
     if (2 != this.mode) {
         bComingFrom1up = true;
@@ -4561,6 +4563,9 @@ BookReader.util = {
 // ttsToggle()
 //______________________________________________________________________________
 BookReader.prototype.ttsToggle = function () {
+
+    this.autoStop();
+
     if (false == this.ttsPlaying) {
         this.ttsPlaying = true;
         this.showProgressPopup('Loading audio...');