1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 17:30:26 +00:00

fix reversed sliding of editor preview when sidebar is on the left

This commit is contained in:
BurningTreeC 2024-11-10 20:07:21 +01:00
parent 275495e77a
commit 0547143fef
3 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ code-body: yes
\function resizer.state() [{$:/state/sidebar}] \function resizer.state() [{$:/state/sidebar}]
\function resizer.class() tc-main-sidebar-resizer \function resizer.class() tc-main-sidebar-resizer
\function set.throttling() yes \function set.throttling() yes
\function drag.direction.reverse() [<get.theme.option sidebarposition>match[left]then[yes]] :else[[no]]
\whitespace trim \whitespace trim
<%if [<get.theme.explicit.option sidebarresizer>match[show]] %> <%if [<get.theme.explicit.option sidebarresizer>match[show]] %>

View File

@ -326,7 +326,7 @@ title: $:/core/procedures/sidebar-resizer
\function get.drag.diff() \function get.drag.diff()
[<event-fromcatcher-posx>subtract<startPosX>] [<event-fromcatcher-posx>subtract<startPosX>]
:map[<get.theme.option sidebarposition>match[left]then<currentTiddler>multiply[-1]else<currentTiddler>] :map[<drag.direction.reverse>match[yes]then<currentTiddler>multiply[-1]else<currentTiddler>]
\end \end
\procedure sidebar-resizer-pointermove-actions() \procedure sidebar-resizer-pointermove-actions()

View File

@ -12,6 +12,7 @@ code-body: yes
\function get.story-padding.right() 0px \function get.story-padding.right() 0px
\function get.story-padding.left() 0px \function get.story-padding.left() 0px
\function get.story.left() 0 \function get.story.left() 0
\function drag.direction.reverse() no
\whitespace trim \whitespace trim
<$let <$let
@ -48,6 +49,7 @@ code-body: yes
\function set.throttling() no \function set.throttling() no
\function get.left.minwidth() [<leftMinWidth>] \function get.left.minwidth() [<leftMinWidth>]
\function get.right.minwidth() [<rightMinWidth>] \function get.right.minwidth() [<rightMinWidth>]
\function drag.direction.reverse() no
\whitespace trim \whitespace trim
<div <div