mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-17 02:51:07 +00:00
Merge pull request #3181 from jakeboone02/touchoverflow-debug
Improve wording of touchOverflow debugging tip
This commit is contained in:
commit
61eb97c8c1
1 changed files with 4 additions and 4 deletions
|
|
@ -68,12 +68,12 @@ $(document).bind("mobileinit", function(){
|
|||
|
||||
|
||||
<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><script>
|
||||
$(document).bind("mobileinit", function(){
|
||||
<strong> $.support.touchOverflow = true;
|
||||
</strong> $.mobile.touchOverflowEnabled = true;
|
||||
$(document).bind("mobileinit", function() {
|
||||
<strong>$.support.touchOverflow = true;</strong>
|
||||
$.mobile.touchOverflowEnabled = true;
|
||||
});
|
||||
</script></code></pre>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue