From fb745664fcea8d667cf2b912565824feafc3d5e8 Mon Sep 17 00:00:00 2001 From: Andrew Trice Date: Tue, 29 May 2012 21:50:36 -0400 Subject: [PATCH] fixed bug that broke scrolling in previous commit --- src/viewnavigator/viewnavigator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewnavigator/viewnavigator.js b/src/viewnavigator/viewnavigator.js index fef71c2..c770a8c 100644 --- a/src/viewnavigator/viewnavigator.js +++ b/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