bluedogtraining/bdt-elm/15.1.2

NOTE: this package is not compatible with Elm 0.19.1

Dom.Scroll.Bdt

Dom Scroll Helpers

String Formatting Helpers

type alias HorizontalScroll =
{ scrollWidth : Int
, scrollLeft : Int
, clientWidth : Int
}

This record is emitted by onHorizontalScroll

onHorizontalScroll : (HorizontalScroll -> msg) -> Attribute msg

Attach this event listener on DOM elements to be notified if it get's scrolled

type alias VerticalScroll =
{ scrollHeight : Int
, scrollTop : Int
, clientHeight : Int
}

This record is emitted by onHorizontalScroll

onVerticalScroll : (VerticalScroll -> msg) -> Attribute msg

Attach this event listener on DOM elements to be notified if it get's scrolled