Skip to content

Commit

Permalink
feat: Pass coordinates as Float
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Feb 10, 2025
1 parent b0af0d6 commit abf5be2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ferrum/mouse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def up(**options)
#
# Mouse move to given x and y.
#
# @param [Integer] x
# @param [Number] x
#
# @param [Integer] y
# @param [Number] y
#
# @param [Integer] steps
# Sends intermediate mousemove events.
Expand All @@ -154,8 +154,8 @@ def move(x:, y:, steps: 1)
@page.command("Input.dispatchMouseEvent",
slowmoable: true,
type: "mouseMoved",
x: new_x.to_i,
y: new_y.to_i,
x: new_x,
y: new_y,
buttons: @buttons)
end

Expand Down

0 comments on commit abf5be2

Please sign in to comment.