mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 16:16:46 +08:00
feat: add scroll wheel zoom setting (#9476)
### Changed Add `scroll wheel to zoom` setting option, when the option enables, user can zoom in and out with scroll wheel without pressing the cmd/ctrl key.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { NodePropsSchema } from '@blocksuite/affine-shared/utils';
|
||||
import { GeneralSettingSchema } from '@blocksuite/affine-shared/services';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const BSEditorSettingSchema = NodePropsSchema;
|
||||
export const BSEditorSettingSchema = GeneralSettingSchema;
|
||||
|
||||
export type FontFamily = 'Sans' | 'Serif' | 'Mono' | 'Custom';
|
||||
export type EdgelessDefaultTheme = 'auto' | 'dark' | 'light' | 'specified';
|
||||
@@ -32,5 +32,5 @@ export const EditorSettingSchema = BSEditorSettingSchema.merge(
|
||||
AffineEditorSettingSchema
|
||||
);
|
||||
|
||||
// eslint-disable-next-line no-redeclare
|
||||
// oxlint-disable-next-line no-redeclare
|
||||
export type EditorSettingSchema = z.infer<typeof EditorSettingSchema>;
|
||||
|
||||
Reference in New Issue
Block a user