#cy.panningEnabled()
// Check whether panning is enabled
cy.panningEnabled(): booleanRead whether panning is allowed at all — programmatic pan() included. Use userPanningEnabled() to block only the gesture.
Returns
booleanthe current panningEnabled value
#cy.panningEnabled(bool)
// Enable or disable panning
cy.panningEnabled(bool: boolean): thisSet whether panning is allowed at all — programmatic pan() included. Use userPanningEnabled() to block only the gesture.
| Name | Description |
|---|---|
bool: boolean | the new setting |
Returns
thisthis core, for chaining
Example
const result = cy.panningEnabled(true);console.log(result === cy); // true