Giter Club home page Giter Club logo

virtual-scroller's People

Contributors

holmberd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

peerchen

virtual-scroller's Issues

Fix scroll-listener not removed on unmount

this.addEventListener('scroll', this.#handleScroll.bind(this));
if (this.enableResizeObserver) {
this.#connectResizeObserver();
}
if (this.#initialized) {
this.#update();
}
}
disconnectedCallback() {
this.removeEventListener('scroll', this.#handleScroll);
this.#disconnectResizeObserver();
}

removeEventListener on LN275 is not using the bound handler reference at LN264.

Update to store a reference to the scroll event handler and use that to remove the handler on unmount.

Add interactive examples

Code examples are great but it would be good if there were some interactive examples to play with, e.g. scrollable list.

Add horizontal virtualization module

The component should support horizontal scrolling, e.g. for horizontal tag scroller. We should therefore add a horizontal-virtualization module similar to the vertical-virtualization module.

  • Add horizontal-virtualization module (see vertical-virtualization.js).
  • Add horizontal-virtualization tests.
  • Add property to the VirtualScroller class to be able to select vertical or horizontal virtualization (not both).
  • Change the VirtualScroller class to switch between vertical and horizontal virtualization calculations.
  • Change the VirtualScroller class variable/method names to better reflect width/height, i.e. size, instead of only height.
  • Add virtual-scroller tests when horizontal virtualization is enabled.

Add TS types

This package could benefit from adding Typescript and types.

Add horizontal mode RTL support

Add class property to change between LTR and RTL (direction: rtl).

If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position (at the start of the scrolled content), and then increasingly negative as you scroll towards the end of the content.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.