Skip to content

Commit

Permalink
fixed: scroll position after reader size change #241
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Aug 27, 2023
1 parent eca6310 commit 2dc2ad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/Components/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ const Reader = () => {
return;
}
if (e.ctrlKey) {
if (parseInt(e.key) >= 1 && parseInt(e.key) <= 5) makeScrollPos();
if (e.key === "1") {
dispatch(setReaderSettings({ fitOption: 0 }));
setshortcutText(50 + "%");
Expand Down

0 comments on commit 2dc2ad9

Please sign in to comment.