#cy.userPanningEnabled()
// Check whether user panning is enabled
cy.userPanningEnabled(): booleanRead whether the user may pan by dragging. Programmatic pan() is unaffected.
Returns
booleanthe current userPanningEnabled value
#cy.userPanningEnabled(bool)
// Enable or disable user panning
cy.userPanningEnabled(bool: boolean): thisSet whether the user may pan by dragging. Programmatic pan() is unaffected.
| Name | Description |
|---|---|
bool: boolean | the new setting |
Returns
thisthis core, for chaining
Example
const result = cy.userPanningEnabled(true);console.log(result === cy); // true