diff --git a/docs/pages/touchoverflow.html b/docs/pages/touchoverflow.html index 922d66c3..6956b259 100644 --- a/docs/pages/touchoverflow.html +++ b/docs/pages/touchoverflow.html @@ -68,12 +68,12 @@ $(document).bind("mobileinit", function(){
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: +
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:
<script>
-$(document).bind("mobileinit", function(){
- $.support.touchOverflow = true;
- $.mobile.touchOverflowEnabled = true;
+$(document).bind("mobileinit", function() {
+ $.support.touchOverflow = true;
+ $.mobile.touchOverflowEnabled = true;
});
</script>