Skip to content

Commit

Permalink
Merge pull request #114 from AndyObtiva/event-location-property
Browse files Browse the repository at this point in the history
Event location property
  • Loading branch information
elia authored Oct 13, 2021
2 parents 39f1bb3 + a9f5a19 commit 3949123
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/opal/jquery/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ def touch_y
`#@native.originalEvent.touches[0].pageY`
end

def location
`#@native.originalEvent.location`
end

def ctrl_key
`#@native.ctrlKey`
end
Expand Down

0 comments on commit 3949123

Please sign in to comment.