Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for ruby 1.8.7

  • Loading branch information...
commit fc7a6a5a6b51a632298f57635c8d08826e09c361 1 parent 8032c20
@jarmo authored
View
2  lib/rautomation/adapter/autoit/mouse.rb
@@ -8,7 +8,7 @@ def initialize(window)
end
def move(coords={})
- @last_position = coords = (@last_position || position).merge coords
+ @last_position = coords = (@last_position || position).merge(coords)
until position[:x] == coords[:x] && position[:y] == coords[:y]
@window.activate
View
2  lib/rautomation/adapter/win_32/mouse.rb
@@ -7,7 +7,7 @@ def initialize(window)
end
def move(coords={})
- @last_position = coords = (@last_position || position).merge coords
+ @last_position = coords = (@last_position || position).merge(coords)
until position[:x] == coords[:x] && position[:y] == coords[:y]
@window.activate
Please sign in to comment.
Something went wrong with that request. Please try again.