Improve timeline trim auto-scroll
This commit is contained in:
1 parent
0d2b17765f
commit
e5a6d0d5df
13 files changed
+508
-41
No files matched your search
@@ -1,4 +1,9 @@
|
||||
export const FIRST_VISUAL_GUIDE_STORAGE_KEY = "timeline-studio-first-visual-guide-seen-v1";
|
||||
export const FIRST_VISUAL_GUIDE_MOBILE_QUERY = "(max-width: 760px)";
|
||||
|
||||
export function canShowFirstVisualGuide({ isMobile = false, hasSeen = false, shownThisSession = false } = {}) {
|
||||
return !isMobile && !hasSeen && !shownThisSession;
|
||||
}
|
||||
|
||||
export function hasSeenFirstVisualGuide() {
|
||||
try { return window.localStorage.getItem(FIRST_VISUAL_GUIDE_STORAGE_KEY) === "1"; } catch { return false; }
|
||||
|
||||
Reference in new issue
Block a user