Class: Browser::Event::Touch
Defined Under Namespace
Classes: Definition
Instance Attribute Summary
#callback, #on
Class Method Summary
collapse
Instance Method Summary
collapse
aliases, #arguments, #arguments=, class_for, create, handlers, handles, #initialize, #name, name_for, new, #off, #prevent, #prevented?, #stop, #stop!, #stopped?, #target
Constructor Details
This class inherits a constructor from Browser::Event
Class Method Details
[View source]
31
32
33
|
# File 'opal/browser/event/touch.rb', line 31
def self.construct(name, desc)
`new TouchEvent(#{name}, #{desc})`
end
|
Instance Method Details
permalink
#cancel? ⇒ Boolean
TODO: implement touches and targetTouches
[View source]
43
44
45
|
# File 'opal/browser/event/touch.rb', line 43
def cancel?
name.downcase == 'touchcancel'
end
|
[View source]
47
48
49
|
# File 'opal/browser/event/touch.rb', line 47
def end?
name.downcase == 'touchend'
end
|
[View source]
51
52
53
|
# File 'opal/browser/event/touch.rb', line 51
def leave?
name.downcase == 'touchleave'
end
|
[View source]
55
56
57
|
# File 'opal/browser/event/touch.rb', line 55
def move?
name.downcase == 'touchmove'
end
|
[View source]
59
60
61
|
# File 'opal/browser/event/touch.rb', line 59
def start?
name.downcase == 'touchstart'
end
|