From 20560ed246834629be68c3d31569b6b49b21d9bc Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Mon, 30 Oct 2023 19:36:04 -0400 Subject: [PATCH] [fix] negative current word values --- assets/reader/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/reader/index.js b/assets/reader/index.js index 224f929..37df536 100644 --- a/assets/reader/index.js +++ b/assets/reader/index.js @@ -677,6 +677,7 @@ class EBookReader { // Update Current Word let pageWords = await this.getVisibleWordCount(); this.bookState.currentWord -= pageWords; + if (this.bookState.currentWord < 0) this.bookState.currentWord = 0; // Reset Read Timer this.bookState.pageStart = Date.now();