From 7a299bc7b8937cb1d0703516f3144eba61d187c2 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Fri, 15 Nov 2024 17:53:53 +0100 Subject: [PATCH] make editor not redraw --- core/ui/EditTemplate/body/default.tid | 5 +++-- core/wiki/macros/sidebar-resizer.tid | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/ui/EditTemplate/body/default.tid b/core/ui/EditTemplate/body/default.tid index c0f61047e..6ee927a02 100644 --- a/core/ui/EditTemplate/body/default.tid +++ b/core/ui/EditTemplate/body/default.tid @@ -53,8 +53,9 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ editPreviewStateTiddler={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] }}} importTitle=<> importState=<> - identifier={{{ [addsuffix[-]addsuffixsha256[]] }}} - sidebarWidthTiddler={{{ [addprefix[$:/state/resizer/previewwidth-]] }}} > + identifier={{{ [addsuffixsha256[]] }}} + sidebarWidthTiddler={{{ [addprefix[$:/state/resizer/previewwidth-]] }}} +> <$dropzone importTitle=<> autoOpenOnImport="no" contentTypesFilter={{$:/config/Editor/ImportContentTypesFilter}} class="tc-dropzone-editor" enable={{{ [{$:/config/DragAndDrop/Enable}match[no]] :else[subfilter{$:/config/Editor/EnableImportFilter}then[yes]else[no]] }}} filesOnly="yes" actions=<> >
diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index 4965e18bb..6add90a3a 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -365,6 +365,8 @@ title: $:/core/procedures/sidebar-resizer :else[] \end +\function get.sidebar-resizer.pointercancel.actions() [is[tiddler]then] + \function get.template-right.style.left() [match[no]then[0px]] :else[[calc(2 * ]addsuffixaddsuffix[)]] \function get.template-left.style.flex-basis() [match[no]then[100%]] :else[[calc(]addsuffixaddsuffix[ - ]addsuffixaddsuffix[px)]] @@ -491,7 +493,7 @@ title: $:/core/procedures/sidebar-resizer class=<> selector=".tc-slider" matchSelector=".tc-slider" - $pointerdown=<> + $pointerdown=<> $pointerup=<>> <%if [!match[no]] %> @@ -501,7 +503,7 @@ title: $:/core/procedures/sidebar-resizer class=<> selector=".tc-slider" matchSelector=".tc-slider" - $pointerup={{{ [is[tiddler]then] }}}> + $pointerup=<>> <$eventcatcher tag="div"