Class: Browser::Event::Mouse::Definition::Offset

Inherits:
Object
  • Object
show all
Includes:
Native::Wrapper
Defined in:
opal/browser/event/mouse.rb

Instance Method Summary collapse

Instance Method Details

#x=(value) ⇒ Object


40
41
42
# File 'opal/browser/event/mouse.rb', line 40

def x=(value)
  `#@native.offsetX = #{value}`
end

#y=(value) ⇒ Object


44
45
46
# File 'opal/browser/event/mouse.rb', line 44

def y=(value)
  `#@native.offsetY= #{value}`
end