image/zoom: Make code more readable
This commit is contained in:
parent
56625f2309
commit
88099b1ec9
2 changed files with 43 additions and 59 deletions
|
|
@ -169,6 +169,8 @@ mod imp {
|
|||
/// Targeted zoom level, might differ from `zoom` when animation is
|
||||
/// running
|
||||
pub(super) zoom_target: Cell<f64>,
|
||||
/// Point in image that should stay under the cursor during animation.
|
||||
/// The value is in image coordinates.
|
||||
pub(super) zoom_cursor_target: Cell<Option<(f64, f64)>>,
|
||||
|
||||
/// Always fit image into window, causes `zoom` to change automatically
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue