blockly > utils > browserEvents > getScrollDeltaPixels
utils.browserEvents.getScrollDeltaPixels() function
Returns the scroll delta of a mouse event in pixel units.
Signature:
export declare function getScrollDeltaPixels(e: WheelEvent): {
x: number;
y: number;
};
Parameters
Parameter | Type | Description |
---|---|---|
e | WheelEvent | Mouse event. |
Returns:
{ x: number; y: number; }
Scroll delta object with .x and .y properties.