feat(viewer): don't use None and ScaleDown for object fit
Some checks failed
build / checks-matrix (push) Successful in 19m19s
build / checks-build (push) Has been cancelled
docs / docs (push) Has been cancelled
build / codecov (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-10-08 04:48:11 +05:30
parent dcefe0f23d
commit 9bef3c273d

View File

@@ -106,9 +106,10 @@ impl MMViewer {
match self.fit { match self.fit {
ObjectFit::Fill => self.fit = ObjectFit::Contain, ObjectFit::Fill => self.fit = ObjectFit::Contain,
ObjectFit::Contain => self.fit = ObjectFit::Cover, ObjectFit::Contain => self.fit = ObjectFit::Cover,
ObjectFit::Cover => self.fit = ObjectFit::ScaleDown, ObjectFit::Cover => self.fit = ObjectFit::Fill,
ObjectFit::ScaleDown => self.fit = ObjectFit::None, // ObjectFit::ScaleDown => self.fit = ObjectFit::None,
ObjectFit::None => self.fit = ObjectFit::Fill, // ObjectFit::None => self.fit = ObjectFit::Fill,
_ => self.fit = ObjectFit::Contain,
} }
cx.notify(); cx.notify();
} }