Skip to content

Commit 138b8ff

Browse files
committed
fix bug: disable autoZ will cause ctrl option fail
1 parent 6785d2d commit 138b8ff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/ldld.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ldld.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ldld.ls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
it.classList.toggle @opt.active-class, (d > 0)
4646
if @opt.inactive-class => it.classList.toggle @opt.inactive-class, (d < 0)
4747
@running = running = @root.0.classList.contains(@opt.active-class)
48+
if @opt.ctrl => @render!
4849
if !@opt.auto-z => return res!
4950
if running =>
5051
@z = z = (ldLoader.zstack[* - 1] or 0) + @opt.base-z
@@ -54,7 +55,6 @@
5455
if (idx = ldLoader.zstack.indexOf(@z)) < 0 => return res!
5556
@root.map ~> it.style.zIndex = ""
5657
ldLoader.zstack.splice(idx, 1)
57-
if @opt.ctrl => @render!
5858
res!
5959

6060
ldLoader <<< do

0 commit comments

Comments
 (0)