use floor instead of round for consistency with mouse move and ff
This commit is contained in:
parent
e884c36da4
commit
d9d1354071
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue