Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,30 @@
/**
*
* Perform a swipe left on an element.
*
* @alias browser.swipeLeft
* @param {String} selector element to swipe on
* @param {Number=} xoffset x offset of swipe gesture (in pixels or relative units)
* @param {Number} speed time (in seconds) to spend performing the swipe
* @uses mobile/flick
* @type mobile
*
*/
let swipeLeft = function (selector, xOffset, speed) {
/**
* we can't use default values for function parameter here because this would
* break the ability to chain the command with an element if reverse is used
*/
xOffset = typeof xOffset === 'number' ? xOffset : 100
speed = typeof speed === 'number' ? speed : 100
/**
* make sure xoffset is positive so we scroll right
*/
xOffset = xOffset > 0 ? xOffset * -1 : xOffset
return this.pause(100).swipe(selector, xOffset, 0, speed)
}
export default swipeLeft