Skip to content

Commit

Permalink
fix(bug): Main scrollbar jumps logseq#5961 (process once only) (logse…
Browse files Browse the repository at this point in the history
  • Loading branch information
YU000jp authored Feb 21, 2024
1 parent 2bbd1bf commit ab74c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/ui.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@
([content-fn]
(lazy-visible content-fn nil))
([content-fn {:keys [trigger-once? _debug-id]
:or {trigger-once? false}}]
:or {trigger-once? true}}]
(let [[visible? set-visible!] (rum/use-state false)
root-margin 100
inViewState (useInView #js {:rootMargin (str root-margin "px")
Expand Down

0 comments on commit ab74c1e

Please sign in to comment.