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

Apurva Jalit apurva.jalit at gmail.com
Thu Apr 23 09:53:40 UTC 2015


Yes that was the reason.. Thanks!

On Tue, Apr 21, 2015 at 8:40 AM, Randall Leeds <tilgovi at hypothes.is> wrote:

> 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/20150423/0790a750/attachment-0004.html>


More information about the annotator-dev mailing list