Get access to the direction of the swipe when a swipe event occurs.

Submitted by Zef Hemel on 3 March 2011 at 15:21

On 3 March 2011 at 15:51 Lipis tagged !lipis

On 4 March 2011 at 23:05 Terje Pedersen tagged !senikk

On 25 March 2011 at 16:36 Zef Hemel commented:

I’m thinking, adding support for left and right swiping is no problem, but what about up and down? If you want to attach special behavior to that, should the screen still scroll up and down if you swipe up and down?

Or is it really left vs. right swiping you’re interested in here?


On 25 March 2011 at 20:27 Terje Pedersen commented:

up and down is mostly used for lists so if we could get left and right we could do things like changing to one screen with left swipe and another with right swipe.


On 11 April 2011 at 15:23 Zef Hemel tagged @zefhemel

On 11 April 2011 at 16:58 Zef Hemel commented:

From 0.4.3 onwards, the implicit Callback event argument will have a direction attribute that can be either ‘right’ or ‘left’:

group {
  item(onswipe={ log(event.direction); }) {
    "Swipe me!"
  }
}

On 11 April 2011 at 16:58 Zef Hemel closed this issue.

On 11 April 2011 at 16:59 Zef Hemel tagged 0.4.3

Log in to post comments