framework/src/org/apache/cordova/MultiTouchPolyfillWebViewClient.java
/**
	 * Function to check if coordinates between two moves have changed by at least one pixel
	 * @return
	 */
Function to check if coordinates between two moves have changed by at least one pixel
@return
Function to check if coordinates between two moves have changed by at least one pixel @return
private boolean checkMoved(WebView view, MotionEvent event) {
		int actionCode = event.getAction() & MotionEvent.ACTION_MASK;
		if (actionCode == MotionEvent.ACTION_MOVE ) {
			movedBuffer.setLength(0);
			if (lastMotionEvent == null) {
				addAllMovesToBuffer(event);
				lastMotionEvent = MotionEvent.obtain(event);
				return true;
			}
			for (int i = 0; i < event.getPointerCount(); i++)
			{
				if ( (int)lastMotionEvent.getX(i) == (int)event.getX(i)
					&& (int)lastMotionEvent.getY(i) == (int)event.getY(i)
					|| (int)event.getX(i) > view.getWidth()
					|| (int)event.getY(i) > view.getHeight())
					continue;
				addMoveToBuffer(event, i);
			}
			if (movedBuffer.length() > 0) {
				lastMotionEvent = MotionEvent.obtain(event);
				return true;
			}
		} else if (actionCode == MotionEvent.ACTION_DOWN || actionCode == MotionEvent.ACTION_POINTER_DOWN) {
			movedBuffer.setLength(0);
			addMoveToBuffer(event, event.getActionIndex());
			lastMotionEvent = MotionEvent.obtain(event);
		}
		return false;
	}
private boolean checkMoved ( WebView view , MotionEvent event ) { int actionCode = event . getAction ( ) & MotionEvent . ACTION_MASK ; if ( actionCode == MotionEvent . ACTION_MOVE ) { movedBuffer . setLength ( 0 ) ; if ( lastMotionEvent == null ) { addAllMovesToBuffer ( event ) ; lastMotionEvent = MotionEvent . obtain ( event ) ; return true ; } for ( int i = 0 ; i < event . getPointerCount ( ) ; i ++ ) { if ( ( int ) lastMotionEvent . getX ( i ) == ( int ) event . getX ( i ) && ( int ) lastMotionEvent . getY ( i ) == ( int ) event . getY ( i ) || ( int ) event . getX ( i ) > view . getWidth ( ) || ( int ) event . getY ( i ) > view . getHeight ( ) ) continue ; addMoveToBuffer ( event , i ) ; } if ( movedBuffer . length ( ) > 0 ) { lastMotionEvent = MotionEvent . obtain ( event ) ; return true ; } } else if ( actionCode == MotionEvent . ACTION_DOWN || actionCode == MotionEvent . ACTION_POINTER_DOWN ) { movedBuffer . setLength ( 0 ) ; addMoveToBuffer ( event , event . getActionIndex ( ) ) ; lastMotionEvent = MotionEvent . obtain ( event ) ; } return false ; }
Function to check if coordinates between two moves have changed by at least one pixel
 @return
Function to check if coordinates between two moves have changed by at least one pixel @return
// Ignore Events outside of viewport