GoogleChromeLabs/squoosh

Center Image after typing in the zoom value

Open

#1064 opened on Jun 19, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (20,335 stars) (1,431 forks)batch import
UIgood first issuehelp wanted

Description

Is your feature request related to a problem? Please describe. When you change the zoom value by typing something in (using the keyboard), the image moves (pans) off of the screen (out of view). (right bottom)

Describe the solution you'd like If the image would get centered (panned to the center of the screen) when the zoom value is changed, by typing, or even better: if the mouse is over the image when the typing happens, zoom in like scroll zoom, otherwise, pan image to middle.

Does other service/app have this feature? I don't know. but gimp doesn't even allow the image to be panned out of view more than 50% of the image.

Additional context I feel like a static image of Squoosh where the image is not visible is kinda useless.

Contributor guide