use floor instead of round for consistency with mouse move and ff

This commit is contained in:
Yury Semikhatsky 2025-02-12 08:39:04 -08:00
parent e884c36da4
commit d9d1354071

View file

@ -95,8 +95,8 @@ export class RawMouseImpl implements input.RawMouse {
async wheel(x: number, y: number, buttons: Set<types.MouseButton>, modifiers: Set<types.KeyboardModifier>, deltaX: number, deltaY: number): Promise<void> {
// 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: [