scaleFactor property

double scaleFactor
final

Determines the amount of scale to be performed per pointer scroll.

Defaults to kDefaultMouseScrollToScaleFactor.

Increasing this value above the default causes scaling to feel slower, while decreasing it causes scaling to feel faster.

The amount of scale is calculated as the exponential function of the PointerScrollEvent.scrollDelta to scaleFactor ratio. In the Flutter engine, the mousewheel PointerScrollEvent.scrollDelta is hardcoded to 20 per scroll, while a trackpad scroll can be any amount.

Affects only pointer device scrolling, not pinch to zoom.

Implementation

final double scaleFactor;