lib/under_os/page.rb in under-os-1.2.1 vs lib/under_os/page.rb in under-os-1.3.0
- old
+ new
@@ -147,7 +147,23 @@
end
def prefersStatusBarHidden
!UnderOs::App.config.status_bar
end
+
+ def touchesBegan(touches, withEvent:event)
+ UnderOs::UI::Events::TouchListeners.notify :touchstart, event
+ end
+
+ def touchesMoved(touches, withEvent:event)
+ UnderOs::UI::Events::TouchListeners.notify :touchmove, event
+ end
+
+ def touchesEnded(touches, withEvent: event)
+ UnderOs::UI::Events::TouchListeners.notify :touchend, event
+ end
+
+ def touchesCancelled(touches, withEvent: event)
+ UnderOs::UI::Events::TouchListeners.notify :touchcancel, event
+ end
end
end