iamdanfox / anno.js

Interactive step-by-step guides for web apps.
iamdanfox.github.io/anno.js/
MIT License
303 stars 56 forks source link

Scrolling happens in two jumps. #10

Open iamdanfox opened 10 years ago

iamdanfox commented 10 years ago

Replace litera's plugin with this one: https://github.com/Arwid/jQuery.scrollIntoView. This seems to allow multiple targets.

iamdanfox commented 10 years ago

Tried using Arwid's plugin. It doesn't support the :scrollable selector. This broke a lot of other code. 663943300fc689ab07d37cf1de5bc9e7cf35a864

iamdanfox commented 10 years ago

Made some adjustments to litera's plugin. 7154eb22fcb8b7e44da438e37ffadc441a351c42 on f/plugin3 Seems to cover some basic cases, but not reliably tested yet.

iamdanfox commented 10 years ago

Naive union is not completely desirable: if target doesn't fit in the viewport, we must make sure the anno is visible!

(A priority list perhaps?)

iamdanfox commented 10 years ago

Worth investigating: (1309 stars) https://github.com/flesler/jquery.scrollTo

Doesn't have :scrollable selector ... would need both.