mirror of
https://github.com/moparisthebest/app-UI
synced 2024-08-13 16:54:00 -04:00
fixed bug that broke scrolling in previous commit
This commit is contained in:
parent
87f928e85a
commit
a7ad378e61
@ -294,7 +294,7 @@ ViewNavigator.prototype.resetScroller = function() {
|
|||||||
if ( !this.winPhone ) {
|
if ( !this.winPhone ) {
|
||||||
if ( id && !(currentViewDescriptor && currentViewDescriptor.scroll == false)) {
|
if ( id && !(currentViewDescriptor && currentViewDescriptor.scroll == false)) {
|
||||||
var self = this;
|
var self = this;
|
||||||
if ( this.touchEnabled ){
|
if ( 'ontouchstart' in window ){
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
|
|
||||||
//use this to mantain scroll position when scroller is destroyed
|
//use this to mantain scroll position when scroller is destroyed
|
||||||
@ -392,4 +392,4 @@ function onBackKey( event ) {
|
|||||||
|
|
||||||
|
|
||||||
//block page scrolling
|
//block page scrolling
|
||||||
window.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
|
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
|
Loading…
Reference in New Issue
Block a user