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