Improve timeline trim auto-scroll

This commit is contained in:
haixin.yang committed 2026-07-22 13:42:19 +08:00
1 parent 0d2b17765f
commit e5a6d0d5df
13 files changed
+508 -41

No files matched your search

+5
View File
@@ -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; }