refactor: Rename prop scrollToCenter and setScrollToCenter to scrollToContent and setScrollToContent respectively (#3261)

* refactor: Rename prop scrollToCenter and setScrollToCenter to scrollToContent and setScrollToContent respectively

* fix

* update changelog/readme

* fix
This commit is contained in:
Aakansha Doshi 2021-03-16 23:02:17 +05:30 committed by GitHub
parent e90e56452f
commit 052b73d95b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 14 deletions

View file

@ -77,7 +77,7 @@ const initializeScene = async (opts: {
const initialData = importFromLocalStorage();
let scene: DataState & { scrollToCenter?: boolean } = await loadScene(
let scene: DataState & { scrollToContent?: boolean } = await loadScene(
null,
null,
initialData,
@ -104,7 +104,7 @@ const initializeScene = async (opts: {
initialData,
);
}
scene.scrollToCenter = true;
scene.scrollToContent = true;
if (!roomLinkData) {
window.history.replaceState({}, APP_NAME, window.location.origin);
}