_demo/assets/js/list-scroll.js
function TouchList( element ) {
    this.element = element;
    this.element.style.overflow = 'hidden';

    this.top = {
      value: 0,
      natural: 0
    };

    this.touch = {
      value: 0,
      offset: 0,
      start: 0,
      previous: 0,
      lastMove: Date.now(),
      accellerateTimeout: -1,
      isAccellerating: false,
      isActive: false
    };

    this.velocity = 0;
  }
function TouchList( element ) {
    this.element = element;
    this.element.style.overflow = 'hidden';

    this.top = {
      value: 0,
      natural: 0
    };

    this.touch = {
      value: 0,
      offset: 0,
      start: 0,
      previous: 0,
      lastMove: Date.now(),
      accellerateTimeout: -1,
      isAccellerating: false,
      isActive: false
    };

    this.velocity = 0;
  }
function TouchList ( element ) { this . element = element ; this . element . style . overflow = 'hidden' ; this . top = { value : 0 , natural : 0 } ; this . touch = { value : 0 , offset : 0 , start : 0 , previous : 0 , lastMove : Date . now ( ) , accellerateTimeout : - 1 , isAccellerating : false , isActive : false } ; this . velocity = 0 ; }
A list specifically for touch devices. Simulates the style
of scrolling you'd see on a touch device but does not rely
on webkit-overflow-scrolling since that makes it impossible
to read the up-to-date scroll position.
A list specifically for touch devices . Simulates the style of scrolling you d see on a touch device but does not rely on webkit - overflow - scrolling since that makes it impossible to read the up - to - date scroll position .