Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > nudgeWheelZoom

Surface.nudgeWheelZoom() method

Nudges the wheel zoom by the given amount. This function is intended for use by components that control zoom via the mouse wheel, and not for general usage. See nudgeZoom for a more general version of this.

Signature:

nudgeWheelZoom(delta: number, e?: any): void;

Parameters

ParameterTypeDescription
deltanumberAmount to change zoom by.
eanyOriginal event that caused the nudge. May be null.

Returns:

void