Disable drawSelection and css cursor animation

This commit is contained in:
kotaindah55 2024-09-25 17:15:43 +03:00
parent 2a46099e8e
commit 454cef8040
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { Plugin } from "obsidian";
import { drawSelection } from "@codemirror/view";
// import { drawSelection } from "@codemirror/view";
import { extendedFormattingPlugin, customHighlightPlugin, alignerPlugin } from "./src/editorPlugins";
import { customHighlightField, extendedFormattingField } from "./src/editorPlugins/stateFields";
import { ExtendedFormattingPostProcessor, CustomHighlightPostProcessor, AlignerPostProcessor } from "./src/postProcessor";
@ -20,7 +20,7 @@ export default class ExtendedMarkdownSyntax extends Plugin {
extendedFormattingPlugin,
customHighlightPlugin,
alignerPlugin,
drawSelection()
// drawSelection()
]);
// postprocessor

View file

@ -25,14 +25,14 @@
font-size: var(--font-smallest);
}
.cm-selectionBackground {
/* .cm-selectionBackground {
transition-duration: 0.1s;
transition-property: left, width;
}
.cm-s-obsidian .cm-cursor {
transition-property: left, top;
transition-duration: 0.1s;
}
} */
.cm-s-obsidian span.cm-highlight:has(.cmx-highlight) {
background-color: transparent;