chore(bidi): use fractional coordinates for pointerAction

This commit is contained in:
Henrik Skupin 2025-02-26 08:02:41 +01:00
parent aaac9923fd
commit 844053c616
No known key found for this signature in database
GPG key ID: AEB189C8ED815074

View file

@ -79,9 +79,6 @@ export class RawMouseImpl implements input.RawMouse {
}
async move(x: number, y: number, button: types.MouseButton | 'none', buttons: Set<types.MouseButton>, modifiers: Set<types.KeyboardModifier>, forClick: boolean): Promise<void> {
// Bidi throws when x/y are not integers.
x = Math.floor(x);
y = Math.floor(y);
await this._performActions([{ type: 'pointerMove', x, y }]);
}