fix(ci): align desktop tests with zoom changes

This commit is contained in:
t8y2 committed 2026-05-28 17:51:36 +08:00
1 parent f7f5758c85
commit 4de788ada2
6 files changed
+17 -46

No files matched your search

@@ -235,29 +235,10 @@ function applyLiveFontSize(size: number) {
scheduleFontThemeReconfig(next, settingsStore.editorSettings.fontFamily);
}
function commitFontSize(size: number) {
const next = clampEditorFontSize(size);
applyLiveFontSize(next);
if (settingsStore.editorSettings.fontSize === next) return;
settingsStore.updateEditorSettings({ fontSize: next });
}
function scheduleFontSizeCommit(size: number) {
zoomCommitScheduler.schedule(size);
}
function zoomIn() {
commitFontSize(liveFontSize.value + 1);
}
function zoomOut() {
commitFontSize(liveFontSize.value - 1);
}
function resetZoom() {
commitFontSize(13);
}
function onEditorGestureStart(event: EditorGestureEvent) {
event.preventDefault();
isGestureZooming.value = true;