diff --git a/lib/opal/jquery/event.rb b/lib/opal/jquery/event.rb index befdc25..13c16fa 100644 --- a/lib/opal/jquery/event.rb +++ b/lib/opal/jquery/event.rb @@ -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