Web:Components:Viewer:Sub-Components:Mobile-Viewer Refactoring and rendering optimization

This commit is contained in:
Akmal Isomadinov 2023-01-24 12:40:49 +05:00
parent 748e454224
commit 0ce8de9143

View File

@ -45,6 +45,7 @@ function MobileViewer({
width: width,
height: height,
touchAction: "none",
willChange: "transform, opacity, contents",
}));
React.useEffect(() => {
const point = maybeAdjustImage({
@ -218,7 +219,6 @@ function MobileViewer({
const x = memo[0] - (mScale - 1) * memo[2];
const y = memo[1] - (mScale - 1) * memo[3];
setScale(style.scale.get());
api.start({
x,
y,