feat: add possibility to limit scroll area

This commit is contained in:
Arnošt Pleskot
2023-06-30 01:27:53 +02:00
parent 2e46e27490
commit 75f8e904cc
3 changed files with 99 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ export const getDefaultAppState = (): Omit<
pendingImageElementId: null,
showHyperlinkPopup: false,
selectedLinearElement: null,
scrollConstraints: null,
};
};
@@ -204,6 +205,7 @@ const APP_STATE_STORAGE_CONF = (<
pendingImageElementId: { browser: false, export: false, server: false },
showHyperlinkPopup: { browser: false, export: false, server: false },
selectedLinearElement: { browser: true, export: false, server: false },
scrollConstraints: { browser: true, export: false, server: false },
});
const _clearAppStateForStorage = <