events.touch.js 781 B

123456789101112131415161718
  1. ["singleTap", "doubleTap", "hold",
  2. "swipe", "-swiping", "swipeLeft", "swipeRight", "swipeUp", "swipeDown",
  3. "rotate", "rotateLeft", "rotateRight",
  4. "pinch", "pinchIn", "pinchOut",
  5. "drag", "dragLeft", "dragRight", "dragUp", "dragDown"].forEach(function(type) {
  6. $$("section#touchevents #gestures").on(type, function(event) {
  7. $$(this).siblings('.console.output').append(' | ' + type);
  8. });
  9. });
  10. $$("[data-action=clean_console]").tap(function(event) {
  11. $$('.console.output').html("");
  12. });
  13. $$("[data-action=twitter]").tap(function(event) {
  14. window.open("https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Flungo.tapquo.com%2F&text=@lungojs a framework for developers who want to design, build and share cross device apps", "_blank");
  15. });