Liking cljdoc? Tell your friends :D
ClojureScript only.

scrolly-wrappy.core

A Reagent component to wrap an element, providing drag-to-scroll vertically synchronized with the browser window and horizontally scrolling its own viewport.

A Reagent component to wrap an element, providing drag-to-scroll vertically synchronized with the
browser window and horizontally scrolling its own viewport.
raw docstring

scrolly-wrappycljs

(scrolly-wrappy element)
(scrolly-wrappy {:keys [initial-centre-fn on-drag-start on-drag-end]
                 :or {on-drag-start noop
                      on-drag-end noop
                      initial-centre-fn (fn [width] (/ width 2))}}
                element)

Wrap content horizontally and enable horizontal and vertical drag-to-scroll. Vertical scroll is window scroll.

Options: initial-centre-fn takes wrapped element width in px and returns which pixel should be centred. The default centres in half. on-drag-start on-drag-end are user callbacks with no args, useful to coordinate.

Wrap content horizontally and enable horizontal and vertical drag-to-scroll. Vertical scroll is
window scroll.

Options:
initial-centre-fn takes wrapped element width in px and returns which pixel should be centred.
The default centres in half.
on-drag-start on-drag-end are user callbacks with no args, useful to coordinate.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close