onSwipe on Vivoactive not working for UP/DOWN

Former Member
Former Member
I have noticed on my vivoactive that when i get an onSwipe event, it only recognises LEFT and RIGHT swipes. The UP and DOWN swipes are not at all recognised. Is this designed behavior on the vivoactive or am I doing something wrong?

I have compiled the "Input" sample code and it also exhibits the same issue. onSwipe does not work for UP and DOWN.

I have been pulling my hair out for the past few hours trying to work out what I am doing wrong. It all works great on the simulator.

class BaseInputDelegate extends Ui.InputDelegate
{

function onSwipe(evt) {
if ( (evt.getDirection() == Ui.SWIPE_UP) || (evt.getDirection() == Ui.SWIPE_LEFT) ) {
c25KView.changePage(1);
} else if ( (evt.getDirection() == Ui.SWIPE_DOWN) || (evt.getDirection() == Ui.SWIPE_RIGHT) ) {
c25KView.changePage(0);
}
}
}


Initially I just had UP and DOWN in the above if/else statement and nothing was working, once I added LEFT and RIGHT, it starts to work. I have confirmed I never receive an onSwipe when swiping up or down.

Is there something silly I am doing? or does it just not work?
  • Hi Jason,

    I don't think the ViviActive hardware supports Up/Down swipes. Only taps and left/right swipes. I don't know about tap and hold support.

    Even in the native modes, if you swipe up or down, it registers it as a tap in a certain location.
  • Former Member
    Former Member over 10 years ago
    Roger is correct. The VivoActive does not support Up and Down swipes. The ConnectIQ simulator does not emulate this behavior correctly, and sends those events. We have corrected the simulator internally so you will see this change in the next release.
  • Former Member
    Former Member over 10 years ago
    Roger is correct. The VivoActive does not support Up and Down swipes. The ConnectIQ simulator does not emulate this behavior correctly, and sends those events. We have corrected the simulator internally so you will see this change in the next release.


    Thank you for that. I have added onTap and it is working the way I like it now.