rename func

This commit is contained in:
Ryan Di 2025-05-09 15:44:39 +10:00
parent 84c396aec2
commit 5dded6112c
2 changed files with 3 additions and 3 deletions

View File

@ -531,7 +531,7 @@ import type { Action, ActionResult } from "../actions/types";
import {
constrainScrollState,
calculateConstrainedScrollCenter,
areCanvasViewsClose,
areCanvasTranslatesClose,
} from "../scene/scrollConstraints";
const AppContext = React.createContext<AppClassProperties>(null!);
@ -2987,7 +2987,7 @@ class App extends React.Component<AppProps, AppState> {
zoom: newState.zoom.value,
};
if (areCanvasViewsClose(fromValues, toValues)) {
if (areCanvasTranslatesClose(fromValues, toValues)) {
return;
}

View File

@ -525,7 +525,7 @@ export const constrainScrollState = (
};
};
export const areCanvasViewsClose = (
export const areCanvasTranslatesClose = (
from: AnimateTranslateCanvasValues,
to: AnimateTranslateCanvasValues,
): boolean => {