Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 368 Bytes

windowScroll.md

File metadata and controls

26 lines (19 loc) · 368 Bytes

windowScroll

windowScroll allows you to observe the current scroll offset of the window.

Usage

class MyElement extends LitElement {
  constructor() {
    super();

    this._scrollCtrl = new WindowScrollController(this);
  }

  render() {
    return html`
      X: ${this._scrollCtrl.x}
      Y: ${this._scrollCtrl.y}
    `;
  }
}

Options

N/A