Skip to content

Commit

Permalink
Improve wording of touchOverflow debugging tip
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 committed Nov 28, 2011
1 parent beffb36 commit 4de3b1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/pages/touchoverflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ <h2>Don&#8217;t other mobile platforms already support overflow?</h2>


<h2>Debugging touchOverflow</h2>
<p>Usually the touchOverflow is only enabled on devices, that support touch-scrolling of overflow areas. This does apparently not apply to desktop browsers, which makes it hard to debug problems with the touchOverflow-feature that only seem to occur on supported devices. But it's easy to enforce the touchOverflow-feature, even on the desktop:
<p>Generally touchOverflow is only enabled on devices that support touch-scrolling of overflow areas, not desktop browsers. This can make it difficult to debug problems with the touchOverflow feature. To enable touchOverflow on all browsers, use the following code:

<pre><code>&lt;script&gt;
$(document).bind(&quot;mobileinit&quot;, function(){
<strong> $.support.touchOverflow = true;
</strong> $.mobile.touchOverflowEnabled = true;
$(document).bind(&quot;mobileinit&quot;, function() {
<strong>$.support.touchOverflow = true;</strong>
$.mobile.touchOverflowEnabled = true;
});
&lt;/script&gt;</code></pre>

Expand Down

0 comments on commit 4de3b1c

Please sign in to comment.