From 84f5325ad27e6564bde1ae0af0c0ec431e670931 Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Wed, 24 Nov 2010 11:54:17 -0800 Subject: [PATCH] Fixed a bug that was causing a vertical scrollview to jump to (0,0) when the directionLock calculated was horizontal. --- experiments/scrollview/jquery.mobile.scrollview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/scrollview/jquery.mobile.scrollview.js b/experiments/scrollview/jquery.mobile.scrollview.js index 110f6291..85a8f64e 100644 --- a/experiments/scrollview/jquery.mobile.scrollview.js +++ b/experiments/scrollview/jquery.mobile.scrollview.js @@ -322,7 +322,7 @@ jQuery.widget( "mobile.scrollview", jQuery.mobile.widget, { } } - this._directionLock = dir ? dir : "none"; + this._directionLock = svdir ? svdir : (dir ? dir : "none"); } var newX = 0;