Telerik-Verified-Plugins / NativePageTransitions

Native transitions like Slide and Flip for iOS, Android and Windows Phone
277 stars 108 forks source link

Slide changes to the same screen and then loads new screen #161

Open flagohuvelle opened 7 years ago

flagohuvelle commented 7 years ago

Hi! First of all, thank you for the great plugin! I have a problem in my app, where i have screen A, and when i try to slide to screen B, it'll slide perfectly to screen A and after its done sliding it loads B. If i increase the time from 300ms to 1000ms, screen B shows up in the middle of the animation sliding in (maybe after 500ms). I'm using the animations on an "onclick" event with almost the default configuration, always using the href. Heres the config:

and the js:

function slide(direction, color, slowdownfactor, hrf) { var theOptions = { 'direction': direction, 'duration': 300, 'slowdownfactor' : slowdownfactor, 'href': hrf, 'fixedPixelsTop' : 0, 'fixedPixelsBottom': 0
}; window.plugins.nativepagetransitions.slide( theOptions, function () { console.log('------------------- slide transition finished'); }, function (msg) { alert('error: ' + msg); }); }

Thanks for your help!

dilukangelosl commented 7 years ago

Did you find a solution?

BRadHoc commented 3 years ago

Also looking for a solution to this