mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-25 16:36:52 +00:00
use is tiddler
This commit is contained in:
parent
a53f839ba7
commit
ce832d8419
@ -258,7 +258,7 @@ title: $:/core/procedures/sidebar-resizer
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure sidebar-resizer-pointermove-actions()
|
\procedure sidebar-resizer-pointermove-actions()
|
||||||
<%if [<get.resizer.state>!is[missing]] %>
|
<%if [<get.resizer.state>is[tiddler]] %>
|
||||||
<$let
|
<$let
|
||||||
startPosX={{{ [<get.resizer.state>get[start-posx]] }}}
|
startPosX={{{ [<get.resizer.state>get[start-posx]] }}}
|
||||||
widgetNodeWidth={{{ [<get.resizer.state>get[widget-node-width]] }}}
|
widgetNodeWidth={{{ [<get.resizer.state>get[widget-node-width]] }}}
|
||||||
@ -287,9 +287,9 @@ title: $:/core/procedures/sidebar-resizer
|
|||||||
<% endif %>
|
<% endif %>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\function get.resizer.class() tc-sidebar-resizer [<get.resizer.state>!is[missing]then[tc-resizer-active]] [<resizer.class>] [<qualify>addsuffix[-]addsuffix<currentTiddler>sha256[]addprefix[tc-sidebar-resizer-]] +[join[ ]]
|
\function get.resizer.class() tc-sidebar-resizer [<get.resizer.state>is[tiddler]then[tc-resizer-active]] [<resizer.class>] [<qualify>addsuffix[-]addsuffix<currentTiddler>sha256[]addprefix[tc-sidebar-resizer-]] +[join[ ]]
|
||||||
|
|
||||||
\function get.active.class(class) [<class>] [<resizer.class>] [<eventCatcherClass>] [<get.resizer.state>!is[missing]then[tc-resizer-active]] +[join[ ]]
|
\function get.active.class(class) [<class>] [<resizer.class>] [<eventCatcherClass>] [<get.resizer.state>is[tiddler]then[tc-resizer-active]] +[join[ ]]
|
||||||
|
|
||||||
\function get.sidebar-resizer.pointerdown.actions()
|
\function get.sidebar-resizer.pointerdown.actions()
|
||||||
[<get.resizer.state>match[$:/state/sidebar/resizing]then<sidebar-resizer-pointerdown-actions>]
|
[<get.resizer.state>match[$:/state/sidebar/resizing]then<sidebar-resizer-pointerdown-actions>]
|
||||||
@ -320,7 +320,7 @@ title: $:/core/procedures/sidebar-resizer
|
|||||||
class=<<get.active.class tc-sidebar-resizer-pointermove-eventcatcher-wrapper>>
|
class=<<get.active.class tc-sidebar-resizer-pointermove-eventcatcher-wrapper>>
|
||||||
selector=".tc-sidebar-resizer"
|
selector=".tc-sidebar-resizer"
|
||||||
matchSelector=".tc-sidebar-resizer"
|
matchSelector=".tc-sidebar-resizer"
|
||||||
$pointerup={{{ [<get.resizer.state>!is[missing]then<sidebar-resizer-pointercancel-actions>] }}}>
|
$pointerup={{{ [<get.resizer.state>is[tiddler]then<sidebar-resizer-pointercancel-actions>] }}}>
|
||||||
|
|
||||||
<$eventcatcher
|
<$eventcatcher
|
||||||
tag="div"
|
tag="div"
|
||||||
@ -429,7 +429,7 @@ title: $:/core/procedures/sidebar-resizer
|
|||||||
class=<<get.active.class tc-sidebar-resizer-pointermove-eventcatcher-wrapper>>
|
class=<<get.active.class tc-sidebar-resizer-pointermove-eventcatcher-wrapper>>
|
||||||
selector=".tc-sidebar-resizer"
|
selector=".tc-sidebar-resizer"
|
||||||
matchSelector=".tc-sidebar-resizer"
|
matchSelector=".tc-sidebar-resizer"
|
||||||
$pointerup={{{ [<get.resizer.state>!is[missing]then<sidebar-resizer-pointercancel-actions>] }}}>
|
$pointerup={{{ [<get.resizer.state>is[tiddler]then<sidebar-resizer-pointercancel-actions>] }}}>
|
||||||
|
|
||||||
<$eventcatcher
|
<$eventcatcher
|
||||||
tag="div"
|
tag="div"
|
||||||
|
@ -94,7 +94,7 @@ code-body: yes
|
|||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
<%if [[$:/state/sidebar/resizing]!is[missing]] %>
|
<%if [[$:/state/sidebar/resizing]is[tiddler]] %>
|
||||||
|
|
||||||
@media (pointer: coarse) {
|
@media (pointer: coarse) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user