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