Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 67
Registered: ‎09-01-2012
My Device: Dev Alpha
My Carrier: Bell

NavigationPane pop issue/bug?

This isn't necessarily a bug, as I can see why it might be happening, but I don't believe it's inherently supposed to happen.

 

Basically I have a page that's pushed and it's a full page picture and when it's touched, the page will then pop and the previous screen will show.

 

However through rigourous testing (..tapping the picture in rapid succession many times Smiley Wink), I found that sometimes the POP would register twice or more and basically would kick back two or more screens.

 

It seems like if I press it fast enough, that the page is still registering my taps even though the first tap has already called the first POP and the transition is playing.

 

Is this supposed to happen?  If so, anybody have any ideas on how to prevent this?  I almost need a InTransition signal so that it would ignore further taps.

Developer
Posts: 67
Registered: ‎09-01-2012
My Device: Dev Alpha
My Carrier: Bell

Re: NavigationPane pop issue/bug?

Just to add, and when it double-pops to the wrong page, the page does not function properly (ie. buttons don't work, etc.).

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: NavigationPane pop issue/bug?

Can you show the code please where touch event is processed?

Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 67
Registered: ‎09-01-2012
My Device: Dev Alpha
My Carrier: Bell

Re: NavigationPane pop issue/bug?

I've tried two methods separately:

First using onTouch:

onTouch: { 
  if (event.isDown()) {
    navigationPane.pop();
  }
}

 

Second using GestureHandlers:

gestureHandlers: [
  TapHandler {
    onTapped: {
      navigationPane.pop();
    }                                                                      }
]