-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom and Pan #22
Comments
Hi, |
Excellent. It's all yours. Thanks a lot for getting involved. |
Hi @ori155. I don't want to put any pressure on, but can you please clarify if you're still taking care of this? If not I'd like to have a look at it. |
@Davejkane I'd like to work on this while waiting for the implementation of #40 to finalize (which NickHackman is working on in #58) |
@Davejkane a couple questions. if someone pans 100 pixels right and 100 pixels down from center, then toggles back and forth between actual fit and fit to screen. Should the I'd go with both being preserved between toggling. I assume the Should the zoom level be reset when moving between images? |
@gurgalex. In my mind neither the offset or the zoom should be preserved if you start playing with the z key. Totally fine for that to just centre the image, unless it's easier to implement it with preserving, in which case go ahead. And yes, I'd expect zoom and pan to be reset when changing images. |
What should each of the |
J = down, K = up, H = left, L = right. Sorry I said semi-colon. Was getting mixed up between vim and i3. Just the same as vim. |
@gurgalex. Now that Nick's branch is released, do you want to focus on Numerical arguments and I'll take this one? Or do you still want to do this one as well? |
@Davejkane Hard part in this is zooming in. |
Hi, It seems I can't put the time right now in order to be in your pace, sorry about the late replay. |
Action
enum inui.rs
Zoom(ZoomAction)
to theAction
enum andPan(PanAction)
to theAction
enumi
andUpArrow
to ZoomIno
andDownArrow
to ZoomOutshift+arrow keys
andshift+j,k,l,;
to Pan directions.In the zoom function limit zoom in to 10x size and limit zoom out to actual size for images smaller than screen, or fit screen for images larger than screen.
In the pan function limit panning to not allow image edge to go past screen edge. It shouldn't be possible to pan the image more than that.
The text was updated successfully, but these errors were encountered: