mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-10 09:20:26 +00:00
fix reversed sliding of editor preview when sidebar is on the left
This commit is contained in:
parent
275495e77a
commit
0547143fef
@ -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]] %>
|
||||||
|
@ -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()
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user