Skip to content

Commit

Permalink
Fix: Sometimes right click on reading fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm authored Nov 17, 2024
1 parent ee40034 commit 1a8e145
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Turn pages with mouse wheel [`f164068`](https://github.com/ollm/OpenComic/commit/f16406851b7adee7609004c95d4a0fec25f2f025)
- Custom name in image saving function [`4b01440`](https://github.com/ollm/OpenComic/commit/4b01440b70b52e10c3cbcb37f1379081242c523f)
- Option to save bookmarked images
- Option to save bookmarked images [`7def9ec`](https://github.com/ollm/OpenComic/commit/7def9eca58ceb24fb3444a3daf3ed81178a13fd1)

##### 🐛 Bug Fixes

- Save image not saving the correct page in manga mode [`b14a26e`](https://github.com/ollm/OpenComic/commit/b14a26eacdc77d37cdeb578fc203438058c7c5e2)
- Sometimes right click on reading fails

## [v1.3.1](https://github.com/ollm/OpenComic/releases/tag/v1.3.1) (05-10-2024)

Expand Down
2 changes: 1 addition & 1 deletion scripts/reading.js
Original file line number Diff line number Diff line change
Expand Up @@ -4600,7 +4600,7 @@ function mousedown(event)
{
if(haveZoom)
{
if((!config.readingMoveZoomWithMouse || !(event instanceof MouseEvent)) || (readingViewIs('scroll') && !config.readingScrollWithMouse))
if(((!config.readingMoveZoomWithMouse || !(event instanceof MouseEvent)) || (readingViewIs('scroll') && !config.readingScrollWithMouse)) && event.button == 0)
{
if(!(event instanceof TouchEvent))
event.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion scripts/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function inputIsFocused()

function clickTapZone(event, button)
{
if(reading.abortClick(event))
if(reading.abortClick(event) && button != 'rightClick')
return false;

const contentRight = template._contentRight();
Expand Down

0 comments on commit 1a8e145

Please sign in to comment.