[fix] negative current word values
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aacf5a7195
commit
20560ed246
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user