-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathjQuery.mobile.silentScroll.xml
36 lines (36 loc) · 1.14 KB
/
jQuery.mobile.silentScroll.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<entry type="method" name="jQuery.mobile.silentScroll" return="jQuery">
<title>jQuery.mobile.silentScroll()</title>
<desc>Scroll to a particular Y position without triggering scroll event listeners.</desc>
<signature>
<argument name="yPos">
<type name="Number" default="0">
<desc>Pass any number to scroll to that Y location.</desc>
</type>
</argument>
</signature>
<example>
<desc>scroll to Y 100px</desc>
<html><![CDATA[
<div data-role="page">
<div data-role="header">
<h1>silentScroll() example</h1>
</div>
<div role="main" class="ui-content">
<a href="#" onclick="$.mobile.silentScroll(100)" data-role="button">Go down 100 pixels</a>
<p> <br><br>Here, we have some text so that we can have <br>
some vertical space in order to demonstrate <br>
the silentScroll() method.<br><br></p>
<a href="#" onclick="$.mobile.silentScroll(0)" data-role="button">Back to Top</a>
</div>
<div data-role="footer">
<h4> </h4>
</div>
</div>
]]></html>
</example>
<longdesc>
<p>Scroll to a particular Y position without triggering scroll event listeners.</p>
</longdesc>
<category slug="methods"/>
</entry>