Skip to content

Commit

Permalink
information for goto input updated with each keystroke
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Dec 1, 2023
1 parent 6e90880 commit 853c7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htmlviewer
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ const showGoto = (function() {
return startIndex;
};
gotoImageInput.addEventListener("change", function(e) {
gotoImageInput.addEventListener("input", function(e) {
updateLastInput(e);
const startIndex = updateImageElement();
if (startIndex !== chapStartIndex) {
Expand All @@ -1905,7 +1905,7 @@ const showGoto = (function() {
updateChapElement();
}
});
gotoChapterInput.addEventListener("change", function(e) {
gotoChapterInput.addEventListener("input", function(e) {
chapStartIndex = startIndexByChapters[gotoChapterInput.value-1];
updateLastInput(e);
updateChapElement();
Expand Down

0 comments on commit 853c7de

Please sign in to comment.