zoom: Don't render at 100% scale while animating
This commit is contained in:
parent
24b5742554
commit
07a471f285
1 changed files with 5 additions and 1 deletions
|
|
@ -70,7 +70,11 @@ fn render_input_order_internal<R: 'static>(
|
||||||
element_filter: ElementFilter,
|
element_filter: ElementFilter,
|
||||||
mut callback: impl FnMut(Stage) -> ControlFlow<Result<R, OutputNoMode>, ()>,
|
mut callback: impl FnMut(Stage) -> ControlFlow<Result<R, OutputNoMode>, ()>,
|
||||||
) -> ControlFlow<Result<R, OutputNoMode>, ()> {
|
) -> ControlFlow<Result<R, OutputNoMode>, ()> {
|
||||||
if shell.zoom_state.is_some() {
|
if shell
|
||||||
|
.zoom_state
|
||||||
|
.as_ref()
|
||||||
|
.is_some_and(|state| state.current_level() != 1.0)
|
||||||
|
{
|
||||||
callback(Stage::ZoomUI)?;
|
callback(Stage::ZoomUI)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue