Yet Another E-hentai Viewer

Fullscreen Image Viewer for E-hentai/Exhentai with a sidebar, preloading, dual page mode, and other stuff.

< Feedback on Yet Another E-hentai Viewer

Review: Good - script works

Suggestion for fixing a bug and disabling/enable the click and drag to zoom.

Add toggle for drag-to-zoom

Adds a new setting to enable/disable the drag-to-zoom feature (click and drag diagonally on the image
to zoom in/out).

Changes:

1. Added config option in defaultConfigValues.viewer (line 10787):
enableDragZoom: { default: true, label: "Enable drag to zoom", requiresReload: false },

2. Added config check in ViewerInputHandler._onPointerMove (line 6110):
if (!this._dragging || !this._isImageDrag || !this.config.enableDragZoom) return;

Bug fix: Zoom toolbar buttons don't work on first click

The +/- zoom buttons in the toolbar don't work until after using keyboard shortcuts or drag-zoom. This
is because the buttons don't set userChangedZoom = true before calling zoom(), so updateTransforms()
resets the zoom level back to the fit mode value.

Changes:

Updated zoom button onClick handlers (lines 4197, 4204):

Before:
onClick: () => this.zoom(-1),
onClick: () => this.zoom(1),

After:
onClick: () => { this.userChangedZoom = true; this.zoom(-1); },
onClick: () => { this.userChangedZoom = true; this.zoom(1); },

§
Posted: 2025-12-03

This worked great, thank you!

shlsdvAuthor
§
Posted: 2025-12-04

Thank you for the report and fix. This is implemented in the new version.

Note: You might have to re-configure some setting after updating due to changes in the internal config structure.

Post reply

Sign in to post a reply.