yads / ngTinyScrollbar

An angular directive port of the TinyScrollbar
MIT License
55 stars 20 forks source link

fix thumb location when clicking the scrollbar the first time #15

Open kenny1har opened 9 years ago

kenny1har commented 9 years ago

Fix the mousePosition.

  1. Starts with a blank content, the scrollbar will not appear.
  2. Then "mousePosition" will equal to 0
  3. Add content, and call update() <-- calculation of thumbs will be incorrect since mousePosition == 0