Fix #658: extend image viewer navigation hover and click area #808
+17
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Closes #658
Problem
Currently, the navigation arrows in the image preview / fullscreen mode only respond when the cursor is placed precisely on the icon. This requires pixel-perfect mouse positioning, which can feel unintuitive and cumbersome—especially when viewing large images or navigating quickly.
Solution
This change introduces a larger, invisible interaction zone around each navigation arrow:
This behavior mirrors that of native photo viewers (e.g., Windows Photos, macOS Preview) and significantly improves overall UX.
This change is purely UI/UX-focused and does not modify business logic or application state. No additional tests were added as the behavior is visual and interaction-based.
Screen.Recording.2025-12-20.160857.mp4
This change makes image navigation feel more natural and forgiving, aligning PictoPy’s behavior with standard photo viewing experiences.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.