senchalabs / jQTouch

Create powerful mobile apps with just HTML, CSS, and Zepto.js (or jQuery).
http://www.jqtouch.com/
MIT License
2.79k stars 592 forks source link

jQT.goTo(newPage, 'slide') - current page doesnt hide #507

Closed Orange06 closed 10 years ago

Orange06 commented 10 years ago

When using jQT.goTo(newpage, 'slide'), do I have to wirte code to hide current page to ? It looks like this: $('document').ready(function() { $('#jqt').on("tap", ".part", function() { id = $(this).attr("rec-id"); newPage = '#page'+id; div = $(newPage); $('#jqt').append(div); setTimeout(function(){ jQT.goTo(newPage, 'slide'); },250); }); });

It does open the "newPage", but in background, "previus" page is still open. Previus page is 1000px height, new one is 400px height, when scrolling down, newPage ends, and it proceeds by showing the rest of 600px of previus page. Anyone had same issue ?

Orange06 commented 10 years ago

Sometimes talking loud about issue helps, and it help me this time. What I did is I removed 'slide' and used just jQT.goTo(newPage). Problem solved.