Skip to content

Commit

Permalink
Event location property
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Aug 25, 2021
1 parent 17e2b40 commit a9f5a19
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 a9f5a19

Please sign in to comment.