Class: listViewScroll

listViewScroll

new listViewScroll()

A module that represents a listViewScroll object, a List view collection page.

Author:
  • Yaw Joseph Etse
License:
  • MIT
Source:
Requires:
  • module:classie
  • module:util-extent
  • module:util
  • module:events

Requires

  • module:classie
  • module:util-extent
  • module:util
  • module:events

Members

<inner> defaults

module default configuration

Source:

Methods

_getOffset(el) → {object}

get element offset, http://stackoverflow.com/a/5598797/989439

Parameters:
Name Type Description
el object

element of scrolled element

Source:
Returns:

top,left position of element

Type
object

_getViewportH() → {number}

handle touch start events

Source:
Returns:

height of viewport element

Type
number

_scrollPage()

Keep visible sections in viewport

Source:
Fires:
  • event:- sectionInView
  • event:- sectionOutView

_scrollY()

get the scroll position of the viewport element

Source:

init()

Sets up a new listViewScroll component.

Source:

initEventListeners()

Sets up a new listViewScroll event listeners.

Source: