Skip to content

Commit

Permalink
add useScrollView() to activate scroll view
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGranstrom committed Nov 14, 2023
1 parent 78d0b2f commit ae70bcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nimiSlides.nim
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ const main = """
{{#disableCentering}}
center: false,
{{/disableCentering}}
{{#useScrollView}}
view: 'scroll',
{{/useScrollView}}
});
{{> customJS}}
</script>
Expand Down Expand Up @@ -161,6 +164,9 @@ template showSlideNumber*() =
template disableVerticalCentering*() =
nb.context["disableCentering"] = true

template useScrollView*() =
nb.context["useScrollView"] = true

proc addStyle*(doc: NbDoc, style: string) =
doc.context["nb_style"] = doc.context["nb_style"].vString & "\n" & style

Expand Down

0 comments on commit ae70bcc

Please sign in to comment.