🐛 Fixed the issue of scroll wheel modifying font size and the problem of automatic language detection failing
This commit is contained in:
@@ -92,8 +92,14 @@ export const useEditorStore = defineStore('editor', () => {
|
||||
|
||||
// 滚轮缩放扩展
|
||||
const wheelZoomExtension = createWheelZoomExtension({
|
||||
increaseFontSize: () => configStore.increaseFontSizeLocal(),
|
||||
decreaseFontSize: () => configStore.decreaseFontSizeLocal(),
|
||||
increaseFontSize: () => {
|
||||
configStore.increaseFontSizeLocal();
|
||||
applyFontSettings();
|
||||
},
|
||||
decreaseFontSize: () => {
|
||||
configStore.decreaseFontSizeLocal();
|
||||
applyFontSettings();
|
||||
},
|
||||
onSave: () => configStore.saveFontSize(),
|
||||
saveDelay: 1000
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user