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> {
|
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.
|
// Bidi throws when x/y are not integers.
|
||||||
x = Math.round(x);
|
x = Math.floor(x);
|
||||||
y = Math.round(y);
|
y = Math.floor(y);
|
||||||
await this._session.send('input.performActions', {
|
await this._session.send('input.performActions', {
|
||||||
context: this._session.sessionId,
|
context: this._session.sessionId,
|
||||||
actions: [
|
actions: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue