Swipe Up & Down

I know we have a swipe left & right but are there any plans to add an up & down swipe?

Hi mackavi,

In fact, the HTML5 player already supports swipeup and swipedown event.
You can bind these events to elements in scene activate event:

function onSceneActivated(doc, e) {
  doc.getElement('element name').bind('swipeup', function(doc, e) {
    console.log(e.type + ' on ' + this.name);
  });
}

Regards

:slight_smile: That makes life easier. Thanks. I attached it to the scene instead and used the previous / next scene functions with the custom transitions code from a previous post making the project appear to scroll smoothly up / down.

1 Like