Skip to content

Commit 1a8e145

Browse files
authored
Fix: Sometimes right click on reading fails
1 parent ee40034 commit 1a8e145

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

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

1515
##### 🐛 Bug Fixes
1616

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

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

scripts/reading.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4600,7 +4600,7 @@ function mousedown(event)
46004600
{
46014601
if(haveZoom)
46024602
{
4603-
if((!config.readingMoveZoomWithMouse || !(event instanceof MouseEvent)) || (readingViewIs('scroll') && !config.readingScrollWithMouse))
4603+
if(((!config.readingMoveZoomWithMouse || !(event instanceof MouseEvent)) || (readingViewIs('scroll') && !config.readingScrollWithMouse)) && event.button == 0)
46044604
{
46054605
if(!(event instanceof TouchEvent))
46064606
event.preventDefault();

scripts/shortcuts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function inputIsFocused()
2929

3030
function clickTapZone(event, button)
3131
{
32-
if(reading.abortClick(event))
32+
if(reading.abortClick(event) && button != 'rightClick')
3333
return false;
3434

3535
const contentRight = template._contentRight();

0 commit comments

Comments
 (0)