code: function(e) {
  
  		e.preventDefault();
  
  		if(_pointerEventEnabled) {
  			var pointerIndex = framework.arraySearch(_currPointers, e.pointerId, 'id');
  			if(pointerIndex > -1) {
  				var p = _currPointers[pointerIndex];
  				p.x = e.pageX;
  				p.y = e.pageY; 
  			}
  		}
  
  		if(_isDragging) {
  			var touchesList = _getTouchPoints(e);
  			if(!_direction && !_moved && !_isZooming) {
  
  				if(_mainScrollPos.x !== _slideSize.x * _currPositionIndex) {
  					// if main scroll position is shifted – direction is always horizontal
  					_direction = 'h';
  				} else {
  					var diff = Math.abs(touchesList[0].x - _currPoint.x) - Math.abs(touchesList[0].y - _currPoint.y);
  					// check the direction of movement
  					if(Math.abs(diff) >= DIRECTION_CHECK_OFFSET) {
  						_direction = diff > 0 ? 'h' : 'v';
  						_currentPoints = touchesList;
  					}
  				}
  				
  			} else {
  				_currentPoints = touchesList;
  			}
  		}	
  	}
docs: amount of pixels to drag to determine direction of swipe