diff --git a/packages/playwright-core/src/server/bidi/bidiInput.ts b/packages/playwright-core/src/server/bidi/bidiInput.ts index a7f8810da5..e40b13bb2e 100644 --- a/packages/playwright-core/src/server/bidi/bidiInput.ts +++ b/packages/playwright-core/src/server/bidi/bidiInput.ts @@ -95,8 +95,8 @@ export class RawMouseImpl implements input.RawMouse { async wheel(x: number, y: number, buttons: Set, modifiers: Set, deltaX: number, deltaY: number): Promise { // Bidi throws when x/y are not integers. - x = Math.round(x); - y = Math.round(y); + x = Math.floor(x); + y = Math.floor(y); await this._session.send('input.performActions', { context: this._session.sessionId, actions: [