#cy.wheelSensitivity()
// Wheel-zoom sensitivity: a multiplier on the zoom-per-wheel-tick exponent (default 1)
cy.wheelSensitivity(): numberWheel-zoom sensitivity: a multiplier on the zoom-per-wheel-tick exponent (default 1). Non-default values warn once per instance — a custom sensitivity tuned on one mouse/OS zooms unnaturally on others.
numberthe current wheelSensitivity value
#cy.wheelSensitivity(mult)
// Wheel-zoom sensitivity: a multiplier on the zoom-per-wheel-tick exponent (default 1)
cy.wheelSensitivity(mult: number): thisWheel-zoom sensitivity: a multiplier on the zoom-per-wheel-tick exponent (default 1). Non-default values warn once per instance — a custom sensitivity tuned on one mouse/OS zooms unnaturally on others.
| Name | Description |
|---|---|
mult: number | the multiplier to set |
thisthis core, for chaining
Example
const result = cy.wheelSensitivity(1);console.log(result === cy); // trueif mult is not a finite positive number (0 would freeze the zoom, so the bound is strict where the threshold setters allow 0)