#cy.autoungrabify()
// Read whether every node is ungrabbable regardless of its own grabbable flag
cy.autoungrabify(): booleanRead whether every node is ungrabbable regardless of its own grabbable flag. Unlike autolock(), this blocks only user dragging; programmatic position writes still apply.
Returns
booleanthe current autoungrabify value
#cy.autoungrabify(bool)
// Set whether every node is ungrabbable regardless of its own grabbable flag
cy.autoungrabify(bool: boolean): thisSet whether every node is ungrabbable regardless of its own grabbable flag. Unlike autolock(), this blocks only user dragging; programmatic position writes still apply.
| Name | Description |
|---|---|
bool: boolean | the new setting |
Returns
thisthis core, for chaining
Example
const result = cy.autoungrabify(false);console.log(result === cy); // trueAlso spelled cy.autoungrabifyNodes.