Window Fit "Automatically Center on Cursor"
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 752
- Avg merge
- 10d 14h
- Merged PRs (30d)
- 1
Description
Windows OS version
Windows 11 24H2
ImageGlass version
v9.3.2.520
ImageGlass release
Classic
1️⃣ Describe the feature
- Currently, Window Fit mode is affected by your cursor placement.
- For example, if you use the scroll wheel to zoom and cause the ImageGlass window to become positioned outside of your cursor, additional scroll wheel inputs will not register.
- This is true regardless of "Automatically center the window in Window Fit mode."
- I propose an option that would cause ImageGlass to re-center on the user's cursor after each zoom tick.
2️⃣ How to use feature
In Settings > Viewer, replace the "Automatically center the window in Window Fit mode" checkbox with a "Window Fit mode center behavior" dropdown menu. Example values:
- Center window on monitor
- Center window on cursor
- Do not center
EDIT - you could also calculate the center of the ImageGlass window as a negative offset for the zoom. That might make more sense than using the cursor. Right now, it uses the top-left of the window as the origin.
3️⃣ Additional context
Short video that demonstrates why current UX is a bit cumbersome (I'm using scroll wheel throughout entire clip):
https://github.com/user-attachments/assets/22ea3e0c-e3a0-4468-a5e1-81111f998ff1
Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Settings > Viewer and trace the Window Fit mode behavior while reproducing the issue with scroll-wheel zoom. Done means replacing the existing centering checkbox with a behavior choice covering monitor centering, cursor centering, and no centering, while preserving usable zoom interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100