[annotator-dev] Using scroll top on page with annotator loaded

Randall Leeds tilgovi at hypothes.is
Tue Apr 21 03:10:12 UTC 2015


If you inspect the document you will find that Annotator inserts a wrapper
div. You may need to scroll that instead.
On Apr 19, 2015 11:13 PM, "Apurva Jalit" <apurva.jalit at gmail.com> wrote:

> Hello all,
> I am trying to use scroll top on a web page. It works perfectly fine when
> annotator is not initialised on the page, but when I initialise annotator
> on the body of the page, the jquery scroll top does not work. Is there any
> know reason behind this?
>
> Scroll top I am using:
> $('html, body').animate({
>         scrollTop: $(element).offset().top
>     }, 1000);
>
> Where element is a html element handler.
>
> Thanks,
> Apurva Jalit
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20150420/b9cfb8d2/attachment-0004.html>


More information about the annotator-dev mailing list