Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-19-2013, 07:56 PM   PM User | #1
m2244
Regular Coder

 
Join Date: Jun 2012
Posts: 129
Thanks: 1
Thanked 1 Time in 1 Post
m2244 is an unknown quantity at this point
jquery mobile swipe issue (still works on desktop)

Hello,

I have a swipe function that works alright but the problem is that if you go back on to your desktop computer and do a quick swipe with the mouse (probably wouldn't happen very often in the real world) you get a swipe event. This is annoying!

So, now I am wondering if I can use jQuery to detect the width of the screen and ignore the swipe if the width is above say 1024px.

Any advice?

Code:
$('#containerContainer').live("swipeleft", function(){
		alert("In swipe left.");
		goToNext();
});


$('#containerContainer').live("swiperight", function(){
		goToPrev();
});
m2244 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:21 AM.


Advertisement
Log in to turn off these ads.