ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Window Fit "Automatically Center on Cursor"

Open EricBCoding opened this issue 1 month ago • 0 comments

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!

EricBCoding avatar Nov 02 '25 21:11 EricBCoding