mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +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:
@@ -22,7 +22,10 @@ import { effects as presetsEffects } from '@blocksuite/presets/effects';
|
||||
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
||||
import * as store from '@blocksuite/store';
|
||||
|
||||
import { mockDocModeService } from '../_common/mock-services.js';
|
||||
import {
|
||||
mockDocModeService,
|
||||
mockEditorSetting,
|
||||
} from '../_common/mock-services.js';
|
||||
import { setupEdgelessTemplate } from '../_common/setup.js';
|
||||
import {
|
||||
createStarterDocCollection,
|
||||
@@ -59,6 +62,7 @@ async function main() {
|
||||
},
|
||||
defaultExtensions: (): ExtensionType[] => [
|
||||
FontConfigExtension(CommunityCanvasTextFonts),
|
||||
blocks.EditorSettingExtension(mockEditorSetting()),
|
||||
],
|
||||
extensions: {
|
||||
FontConfigExtension: FontConfigExtension(CommunityCanvasTextFonts),
|
||||
|
||||
Reference in New Issue
Block a user