From a7ad378e6115b47cf07affd6562b597fd199c353 Mon Sep 17 00:00:00 2001 From: Andrew Trice Date: Tue, 29 May 2012 21:49:56 -0400 Subject: [PATCH] fixed bug that broke scrolling in previous commit --- examples/src/viewnavigator/viewnavigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/viewnavigator/viewnavigator.js b/examples/src/viewnavigator/viewnavigator.js index 825f80d..25644d0 100644 --- a/examples/src/viewnavigator/viewnavigator.js +++ b/examples/src/viewnavigator/viewnavigator.js @@ -294,7 +294,7 @@ ViewNavigator.prototype.resetScroller = function() { if ( !this.winPhone ) { if ( id && !(currentViewDescriptor && currentViewDescriptor.scroll == false)) { var self = this; - if ( this.touchEnabled ){ + if ( 'ontouchstart' in window ){ setTimeout( function() { //use this to mantain scroll position when scroller is destroyed @@ -392,4 +392,4 @@ function onBackKey( event ) { //block page scrolling -window.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); \ No newline at end of file +document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); \ No newline at end of file