Permalink
Browse files

Fix for issues:

	1333 - Delay when scrolling over list when data-theme="d"
		1368 - Listview refresh performance on a4
			1407 - Bad scroll performance since A4 on iPhone 3G

			Removed the checking for window.pageX/pageY in the vmouse touch callbacks. Accessing pageX/pageY causes the browser to flush its rendering queue.
  • Loading branch information...
1 parent 5c1953f commit 0ef954575aae1a7d0af9611f23626a891ba2a55d @jblas jblas committed Apr 8, 2011
Showing with 0 additions and 9 deletions.
  1. +0 −9 js/jquery.mobile.vmouse.js
@@ -30,12 +30,9 @@ var dataPropertyName = "virtualMouseBindings",
resetTimerID = 0,
startX = 0,
startY = 0,
- startScrollX = 0,
- startScrollY = 0,
didScroll = false,
clickBlockList = [],
blockMouseTriggers = false,
- scrollTopSupported = $.support.scrollTop,
eventCaptureSupported = $.support.eventCapture,
$document = $(document),
nextTouchID = 1,
@@ -227,11 +224,6 @@ function handleTouchStart(event)
startX = t.pageX;
startY = t.pageY;
- if (scrollTopSupported){
- startScrollX = window.pageXOffset;
- startScrollY = window.pageYOffset;
- }
-
triggerVirtualEvent("vmouseover", event, flags);
triggerVirtualEvent("vmousedown", event, flags);
}
@@ -255,7 +247,6 @@ function handleTouchMove(event)
var didCancel = didScroll,
moveThreshold = $.vmouse.moveDistanceThreshold;
didScroll = didScroll
- || (scrollTopSupported && (startScrollX !== window.pageXOffset || startScrollY !== window.pageYOffset))
|| (Math.abs(t.pageX - startX) > moveThreshold || Math.abs(t.pageY - startY) > moveThreshold);
var flags = getVirtualBindingFlags(event.target);

0 comments on commit 0ef9545

Please sign in to comment.