tiling: Fix flickering on overview (fix #345)
This commit is contained in:
parent
e3159f92d1
commit
e959e4f1ac
1 changed files with 8 additions and 6 deletions
|
|
@ -5257,10 +5257,12 @@ where
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
let behavior = if animating {
|
let (behavior, align) = if is_overview {
|
||||||
ConstrainScaleBehavior::Stretch
|
(ConstrainScaleBehavior::Fit, ConstrainAlign::CENTER)
|
||||||
|
} else if animating {
|
||||||
|
(ConstrainScaleBehavior::Stretch, ConstrainAlign::TOP_LEFT)
|
||||||
} else {
|
} else {
|
||||||
ConstrainScaleBehavior::CutOff
|
(ConstrainScaleBehavior::CutOff, ConstrainAlign::TOP_LEFT)
|
||||||
};
|
};
|
||||||
|
|
||||||
let w_elements = w_elements.into_iter().flat_map(|element| match element {
|
let w_elements = w_elements.into_iter().flat_map(|element| match element {
|
||||||
|
|
@ -5271,7 +5273,7 @@ where
|
||||||
geo.as_logical().to_physical_precise_round(output_scale),
|
geo.as_logical().to_physical_precise_round(output_scale),
|
||||||
elem_geometry,
|
elem_geometry,
|
||||||
behavior,
|
behavior,
|
||||||
ConstrainAlign::TOP_LEFT,
|
align,
|
||||||
output_scale,
|
output_scale,
|
||||||
)
|
)
|
||||||
.next()
|
.next()
|
||||||
|
|
@ -5283,7 +5285,7 @@ where
|
||||||
geo.as_logical().to_physical_precise_round(output_scale),
|
geo.as_logical().to_physical_precise_round(output_scale),
|
||||||
elem_geometry,
|
elem_geometry,
|
||||||
behavior,
|
behavior,
|
||||||
ConstrainAlign::TOP_LEFT,
|
align,
|
||||||
output_scale,
|
output_scale,
|
||||||
)
|
)
|
||||||
.next()
|
.next()
|
||||||
|
|
@ -5295,7 +5297,7 @@ where
|
||||||
geo.as_logical().to_physical_precise_round(output_scale),
|
geo.as_logical().to_physical_precise_round(output_scale),
|
||||||
elem_geometry,
|
elem_geometry,
|
||||||
behavior,
|
behavior,
|
||||||
ConstrainAlign::TOP_LEFT,
|
align,
|
||||||
output_scale,
|
output_scale,
|
||||||
)
|
)
|
||||||
.next()
|
.next()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue