#cy.touchTapThreshold()
// Css px a touch press may move and still count as a tap (default 8)
cy.touchTapThreshold(): numberCss px a touch press may move and still count as a tap (default 8).
Returns
numberthe current touchTapThreshold value
#cy.touchTapThreshold(px)
// Css px a touch press may move and still count as a tap (default 8)
cy.touchTapThreshold(px: number): thisCss px a touch press may move and still count as a tap (default 8).
| Name | Description |
|---|---|
px: number | the new threshold |
Returns
thisthis core, for chaining
Example
const result = cy.touchTapThreshold(8);console.log(result === cy); // trueThrows
if px is not a finite non-negative number