<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>scrolltop jQuery Event</title><link>https://community.telligent.com/community/11/w/api-documentation/65163/scrolltop-jquery-event</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>scrolltop jQuery Event</title><link>https://community.telligent.com/community/11/w/api-documentation/65163/scrolltop-jquery-event</link><pubDate>Tue, 19 Nov 2019 20:28:18 GMT</pubDate><guid isPermaLink="false">f901fadf-0841-44e0-b108-15eabd18a439</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/65163/scrolltop-jquery-event#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:18&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_event_special_scrolltop" name="jQuery_event_special_scrolltop"&gt;&lt;/a&gt;jQuery.event.special.scrolltop&lt;/h3&gt;
&lt;p&gt;The scrolltop event is raised when scrolling near the top of the window or scrollable container element.&lt;/p&gt;
&lt;p&gt;This is commonly useful for enabling endless scrolling interfaces.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;// handle the &amp;#39;scrolltop&amp;#39; event on an entire document
$(document).on(&amp;#39;scrolltop&amp;#39;, function() {
    // handle event
});

// handle the &amp;#39;scrolltop&amp;#39; event of a vertically-overflowing div
$(&amp;#39;#SomeOverflowingDiv&amp;#39;).on(&amp;#39;scrollend&amp;#39;, function() {
    // handle event
});

// handle the &amp;#39;scrolltop&amp;#39; event on an entire document with custom parameters
$(document).on(&amp;#39;scrolltop&amp;#39;, {
    padding: 150,  // distance from the top at which &amp;#39;scrolltop&amp;#39; is raised
    delay: 250    // frequency to check scroll position during a scroll
}, function() {
    // handle event
});
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; When performing an asynchronous request on a &lt;code&gt;scrolltop&lt;/code&gt; or &lt;code&gt;scrollend&lt;/code&gt; event, a flag should be set to block subsequent requests until the current request is complete.&lt;/p&gt;
&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>