jQTouch icon indicating copy to clipboard operation
jQTouch copied to clipboard

black screen was appeared when swipe too fast in demos/customanimation2

Open summercoal opened this issue 14 years ago • 7 comments

Hi, I found that the black screen is appeared, when I swipe the page too fast. Is there any solution for this? Thanks

summercoal avatar Aug 11 '10 09:08 summercoal

this is happening to me too, more specifically when you swipe twice in the same direction before the animation occurs. This is easily reproduced.

$('#tdWidth1').swipe(function(e, info){ if (info.direction === 'left') { jQT.goTo($('#tdWidth2'), 'slideup'); } });

that is what my code looks like. I am using revision 109.

dandaman1111 avatar Aug 25 '10 23:08 dandaman1111

dandaman1111 avatar Aug 25 '10 23:08 dandaman1111

Hi, I've some problems to use this functions.

JS :

Functions:

$(function(){ // This prevents scrolling $('#jqt').bind('touchmove',function(){ event.preventDefault(); }); $('#page1').swipe(function(e, info){ if (info.direction === 'left') { jQT.goTo($('#page2'), 'swipe'); } });

            $('#page2').swipe(function(e, info){
                if (info.direction === 'right') {
                    jQT.goBack('#page1', 'swipe');
                }
            })
        });

But nothing when I try to use swipe, nothing happen..

have you got some suggestion?

ethernalyIT avatar Oct 28 '10 20:10 ethernalyIT

I have this problem as well, seems to happen if you swipe while the animation is still transitioning. I either end up with a blank page, or occasionally it lands off center and suddenly scaling/movement is turned back on (ie i can drag the site away from the edge of the screen, which I had disabled with this: [CODE] $('body').bind('touchmove',function(){ event.preventDefault(); }); [/CODE]

Though primarily is the rapid swiping problem. I desperately need this fixed, and haven't been able to figure out how yet. I imagine it would involve disabling swipe during the animation transition, then re-enabling it once the animation finishes. I think. Can anyone please help?

Thanks!

fastasleep avatar Nov 11 '10 06:11 fastasleep

I am having the same issue. Has anyone been able to solve this?

alexdelmont avatar Jan 27 '11 17:01 alexdelmont

I'm having this same issue with clicking/tapping too fast.....goes to black screen. Ugh.

kshipp avatar Jul 17 '11 23:07 kshipp

If anyone's interested, this solution did it for me: http://stackoverflow.com/questions/5380994/how-to-stop-the-swipe-event-in-jqtouch-whilst-a-slide-transition-is-occuring

kristoffbertram avatar Feb 01 '12 06:02 kristoffbertram