From 454cef8040eee0c8b62f734d0d6ef2376c6e44bc Mon Sep 17 00:00:00 2001 From: kotaindah55 Date: Wed, 25 Sep 2024 17:15:43 +0300 Subject: [PATCH] Disable drawSelection and css cursor animation --- main.ts | 4 ++-- styles.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index 2e32085..3d7bbc4 100644 --- a/main.ts +++ b/main.ts @@ -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 diff --git a/styles.css b/styles.css index 5b5c02f..d0417df 100644 --- a/styles.css +++ b/styles.css @@ -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;