Skip to content

Commit

Permalink
Content cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Parker committed Nov 11, 2010
1 parent fed9911 commit 06b383c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions docs/api/events.html
Expand Up @@ -16,9 +16,11 @@ <h1>Events</h1>
</div><!-- /header -->

<div data-role="content">
<h2>Events in jQuery Mobile</h2>


<p>jQuery Mobile offers several custom events that build upon native events to create useful hooks for development. Note that these events employ various touch, mouse, and window events, depending on event existence, so you can bind to them for use in both handheld and desktop environments. You can bind to these events like you would with other jQuery events, using <code>live()</code> or <code>bind()</code>.</p>

<h2>Touch events</h2>
<dl>
<dt><code>tap</code></dt>
<dd>Triggers after a quick, complete touch event.</dd>
Expand All @@ -35,12 +37,17 @@ <h2>Events in jQuery Mobile</h2>
<dt><code>swiperight</code></dt>
<dd>Triggers when a swipe event occurred moving in the right direction.</dd>

<h2>Orientation change event</h2>
<dl>
<dt><code>orientationchange</code></dt>
<dd>Triggers when a device orientation changes (by turning it vertically or horizontally). When bound to this event, your callback function can leverage a second argument, which contains an <code>orientation</code> property equal to either "portrait" or "landscape". These values are also added as classes to the HTML element, allowing you to leverage them in your CSS selectors. Note that we currently bind to the resize event when orientationChange is not natively supported.</dd>
</dl>

<h2>Scroll events</h2>
<dl>
<dt><code>scrollstart</code></dt>
<dd>Triggers when a scroll begins. Note that iOS devices freeze DOM manipulation during scroll, queuing them to apply when the scroll finishes. We're currently investigating ways to allow DOM manipulations to apply before a scroll starts.</dd>

<dl>
<dt><code>scrollstop</code></dt>
<dd>Triggers when a scroll finishes.</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/globalconfig.html
Expand Up @@ -11,7 +11,7 @@
<div data-role="page">

<div data-role="header">
<h1>Configuring Default Settings</h1>
<h1>Configuring Defaults</h1>
</div><!-- /header -->

<div data-role="content" data-theme="c">
Expand Down

0 comments on commit 06b383c

Please sign in to comment.