Touch handler events



fast click : ‘fc’

swipe left : ‘swl’

swipe right : ‘swr’

swipe up : ‘swu’

swipe down : ‘swd’

each check initializes it’s correspondent event.but you can scroll and do whatever else you do normally. you just have some new events.

you need swl swr, i aslo suggest to use fc (fastclick) for click events… it’s much faster than normal click.

 ce=function(e,n){var a=document.createEvent("CustomEvent");a.initCustomEvent(n,true,true,;;a=null;return false},
  touchend:function(e){if(nm){ce(e,'fc')}else{var x=ep.x-sp.x,xr=Math.abs(x),y=ep.y-sp.y,yr=Math.abs(y);if(Math.max(xr,yr)>20){ce(e,(xr>yr?(x<0?'swl':'swr'):(y<0?'swu':'swd')))}};nm=true},
 for(var a in touch){d.addEventListener(a,touch[a],false);}
var h=function(e){console.log(e.type,e)};
document.body.addEventListener('fc',h,false);// 0-50ms vs 500ms with normal click

in this case h is my handler for every type of evnet and i add the handlers to the body.

for what i understand your question you just have to write


to handle multiple elements and the same function… just add one handler.

so if you have

<ul id="ul"><li>1</li><li>2</li><li>3</li></ul>

you do:

var deleteli=function(e){
 console.log('deleting '+li.textContent);

same for fc & swr

there is a bug in ios: don’t use alert() .. it will execute 2 times.



  1. I simply want to mention I am just very new to weblog and seriously liked you’re page. Almost certainly I’m likely to bookmark your blog post . You absolutely come with incredible articles. Bless you for sharing your website.

  2. facebook find love –
    Good post however , I was wanting to know if you could write a litte more on this subject?
    I’d be very grateful if you could elaborate a little bit more.
    Bless you!

  3. Pretty element of content. I just stumbled upon your web site and in accession capital to
    claim that I get in fact enjoyed account your weblog posts.

    Any way I’ll be subscribing for your feeds or even I achievement you get admission to persistently fast.

  4. Fantastic beat ! I would like to apprentice while you amend your web site, how could i subscribe for a blog website? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear idea

  5. I like the valuable info you provide in your articles. I’ll bookmark your weblog and check again here frequently. I’m quite certain I’ll learn plenty of new stuff right here! Best of luck for the next!

  6. Great amazing issues here. I¡¦m very satisfied to look your article. Thank you so much and i’m having a look forward to contact you. Will you please drop me a e-mail?

  7. I think this is one of the most vital info for me. And i’m glad reading your article. But wanna remark on few general things, The web site style is ideal, the articles is really nice : D. Good job, cheers

  8. I was suggested this web site by my cousin. I’m not sure whether this post is written by him ass nobody else knjow such detailed about my difficulty.
    You are wonderful! Thanks!

  9. I’ll right away seize your rss feed as I can’t in finding your email subscription link or e-newsletter service.
    Do you have any? Kindly permit me realze inn order that I may just subscribe.

  10. Hey I know this is off topic but I wwas wondering if you knew of
    any widgets I could add to my blog that automatically twweet my newqest twitter updates.
    I’ve been looking for a plug-in likee this for quite some time and was hoping maybe you would have ome experience
    with something like this. Please let me knkw if you run into anything.
    I truly enjoy reading your blog and I look forward to your
    new updates.

  11. May I just say what a comfort to find someone that really knows what they’re talking about online. You certainly realize how to bring a problem to light and make it important. More people should look at this and understand this side of your story. I can’t believe you are not more popular because you certainly possess the gift.

  12. I will machines this review toward 2 models of us citizens: present Zune homeowners who are taking into consideration an up grade, and us residents trying in the direction of come to a decision between a Zune and an iPod. (There are other gamers importance looking at out there, including the Sony Walkman X, yet I anticipate this presents by yourself enough facts in the direction of produce an knowledgeable alternative of the Zune vs players other than the iPod line as effectively.)

  13. Cool blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple adjustements would really make my blog
    jump out. Please let me know where you goot your design.
    Thank you

  14. At this ttime I am going to do my breakfast, later than having mmy breakfast coming again to read addiitional news.

  15. Thank you for sharing superb informations. Your web-site is so cool. I’m impressed by the details that you¡¦ve on this site. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found just the information I already searched everywhere and simply couldn’t come across. What a perfect site.

  16. Hello, Neat post. There’s a problem with your website in web explorer, may test this¡K IE still is the market chief and a good component to folks will miss your great writing due to this problem.

  17. Cool blog! Is your theme custom made orr
    did you download it from somewhere? A theme like yours with a few simple adjustements would really
    make my blog jump out. Please let me know where you got yourr theme.

  18. I want to convey my passion for your kindness giving support to persons that have the need for assistance with the concept. Your special commitment to getting the solution all over turned out to be wonderfully informative and have helped guys and women just like me to arrive at their aims. Your personal useful instruction denotes so much to me and much more to my colleagues. Warm regards; from all of us.

  19. Just wish to say your article is as astounding. The clearness in your post is just cool and i can assume you’re an expert on this subject. Fine with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work.

  20. Hiya, I’m really glad I’ve found this information. Today bloggers publish just about gossips and internet and this is actually frustrating. A good web site with exciting content, that’s what I need. Thank you for keeping this site, I will be visiting it. Do you do newsletters? Can not find it.

  21. Zune and iPod: Maximum folks review the Zune toward the Touch, still when observing how thin and amazingly tiny and light-weight it is, I contemplate it in direction of be a as a substitute special hybrid that brings together attributes of both of those the Touch and the Nano. It can be Pretty colorful and stunning OLED screen is a little lesser than the touch screen, nonetheless the player alone feels quite a little bit lesser and lighter. It weighs more than 2/3 as a great deal, and is noticeably scaled-down in width and height, while staying exactly a hair thicker.

  22. The Zune concentrates on becoming a Transportable Media Player. Not a world wide web browser. Not a recreation machine. Maybe in the upcoming it’s going to do even greater within these areas, but for already it’s a outstanding way towards prepare and hear toward your audio and films, and is without peer in just that regard. The iPod’s pros are its world-wide-web viewing and programs. If all those solid much more powerful, potentially it is your least difficult determination.

  23. I was wondering if you ever thought of changing the structure of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 images. Maybe you could space it out better?

  24. I am extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one today..

  25. I like what you guys are up also. Such smart work and reporting! Carry on the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my web site 🙂

  26. I¡¦ll immediately snatch your rss as I can not to find your e-mail subscription hyperlink or e-newsletter service. Do you’ve any? Kindly let me realize so that I may subscribe. Thanks.

  27. I discovered your weblog website on google and test a number of of your early posts. Continue to keep up the superb operate. I simply additional up your RSS feed to my MSN Information Reader. Searching for ahead to reading extra from you afterward!…

  28. I do believe all the ideas you have offered to your post. They are very convincing and will definitely work. Still, the posts are very brief for novices. Could you please lengthen them a bit from subsequent time? Thank you for the post.

  29. The Zune concentrates upon currently being a Transportable Media Player. Not a website browser. Not a match machine. Quite possibly within just the long run it’ll do even much better within just people areas, but for now it’s a very good route in direction of arrange and listen towards your audio and videos, and is without the need of peer within that regard. The iPod’s positive aspects are its world-wide-web visiting and purposes. If those strong additional persuasive, maybe it is your excellent final decision.

  30. I have bwen surfing on-line more thaan 3 hours nowadays,
    but I never found any fascinating article like yours.
    It’s lovely value sufficient for me. Personally, if all website owners and bloggers made good content as
    you did, the net will be much more usefyl than ever before.

  31. Good day! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for my comment form?

    I’m using the same blog platform as yours and I’m having trouble
    finding one? Thanks a lot!

  32. We are a bunch of volunteers and startring a new scheme
    in our community. Your website provided us with useful
    info to work on. You’ve done a formidable jjob and our whole group
    might be grateful to you.

  33. Does your blog have a contact page? I’m having
    problems locating it but, I’d like to shoot you an e-mail.
    I’ve got some ideas for your bloig you might be interested
    in hearing. Either way, gret website and I look forward to seeing
    it expaand over time.

  34. Hi I am so excited I found your webpage, I really found you by accident,
    hile I was browsing on Askjeeve for somethinng else, Nonetheless I am
    here now and would just like to say thanks a lot for
    a tremendous post and a all roud thrilling bllog (I also love the theme/design), I don’thave time
    to go through it all at the minute but I have bookmarked it and also includsd your
    RSS feeds, so when I have time I will be back to red
    a llot more, Please do keep up the fantastic job.

  35. Greate post. Keep posting such kind of info on your blog.
    Im really impressed by your blog.
    Hi there, You’ve dpne a fantastic job. I wll definitely digg it annd
    in my opinion recommend to my friends. I amm confident they’ll
    be benefited from this website.

  36. You’re a very helpful website; could not make it without ya! erektil dysfunktion

  37. facebook find love –
    Thanks for your personal marvelous posting! I certainly enjoyed reading it, you could be a great author.I will
    be sure to bookmark your blog and will eventually come back from now on. I want to encourage that you continue your great work,
    have a nice weekend!

  38. The fresh new Zune browser is shockingly beneficial, yet not as positive as the iPod’s. It functions perfectly, still is not as fast as Safari, and incorporates a clunkier interface. If your self sometimes software upon employing the web browser that is not an issue, nonetheless if you’re developing toward read the website alot versus your PMP then the iPod’s greater display and better browser may well be necessary.

  39. Thank you for writing this awesome article. I’m a long time reader but I’ve never been compelled to leave a comment. I subscribed to your blog and shared this on my Facebook. Thanks again for a great post!

  40. Wonderful beat ! I would like to apprentice wgile you amend your website, how could i subscribe
    for a weblog site? The account aided me a appropriate deal.
    I have been a little bit familiar of this your broadcast
    offered shiny clear idea

  41. The clean Zune browser is shockingly optimistic, yet not as constructive as the iPod’s. It operates properly, still is not as prompt as Safari, and contains a clunkier interface. If oneself once in a while program on using the world wide web browser which is not an issue, yet if you happen to be planning in direction of read through the world wide web alot in opposition to your PMP then the iPod’s larger screen and much better browser may possibly be substantial.

  42. facebook find love –
    Wonderful blog! I found it while searching on Yahoo News.

    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get
    there! Cheers

  43. Have yoou ever thought about creating an ebook or guest authoring on other sites?
    I have a blog based on the same information you duscuss and would really like to have you share some stories/information. I know my visitors would enjoy your work.
    If you’re even remotely interested, feel free to send mee an email.

  44. The Zune concentrates upon staying a Portable Media Player. Not a world wide web browser. Not a video game machine. Maybe inside the foreseeable future it’s going to do even much better in just these areas, nonetheless for at present it is a outstanding path in the direction of organize and listen toward your tunes and films, and is with no peer inside that regard. The iPod’s rewards are its world-wide-web checking out and purposes. If people solid further powerful, quite possibly it is your suitable decision.

  45. facebook find love –
    Hi there, i read your blog occasionally and i own a similar one and i
    was just curious if you get a lot of spam responses? If so how do you prevent it, any plugin or anything you can advise?
    I get so much lately it’s driving me insane so any assistance is very much appreciated.

  46. The fresh Zune browser is remarkably Fantastic, however not as Excellent as the iPod’s. It functions very well, yet is just not as instantaneous as Safari, and incorporates a clunkier interface. If your self sometimes plan on taking the net browser that is not an issue, nonetheless if you might be developing in the direction of browse the world wide web alot from your PMP then the iPod’s bigger show and improved browser could possibly be vital.

  47. facebook find love –
    That is very interesting, You’re an overly skilled blogger.
    I’ve joined your rss feed and stay up for in the hunt for extra of your fantastic post.
    Also, I’ve shared your site in my social networks

  48. Thanks for publishing this awesome article. I’m a long time reader but I’ve never been compelled to leave a comment. I subscribed to your blog and shared this on my Twitter. Thanks again for a great post!

  49. If you might be nevertheless on the fence: seize your favored earphones, thoughts down to a Easiest Order and request toward plug them into a Zune then an iPod and perspective which just one appears far better toward oneself, and which interface tends to make by yourself smile further. Then you will know which is instantly for on your own.

  50. Apple at present consists of Rhapsody as an app, which is a suitable get started, nevertheless it is at the moment hampered by way of the lack of ability in direction of shop locally upon your iPod, and contains a dismal 64kbps bit price tag. If this changes, then it will relatively negate this convenience for the Zune, nevertheless the 10 tunes for every thirty day period will still be a huge moreover within just Zune Pass’ want.

  51. facebook find love –
    Awesome! Its in fact remarkable piece of writing, I have got much clear idea concerning
    from this article.

  52. I do trust all of the concepts you have ofered for your post.
    They’re really convincing and willl certainly work.Still, the posts are
    too short foor beginners. Could you please prolong them a bit
    from subsequent time? Thanks for the post.

  53. Having read this I believed it was rather informative.
    I appreciate you finding the time and energy to put this content together.
    I once again find myself personally spending wayy too much time both
    readiing and powting comments. But so what, it was still worthwhile!

  54. I’m not sure wheree you are getting your information, but goood topic.
    I nreds tto spend some time learning more or understanding more.
    Thanks for greeat info I was looking ffor this info ffor my mission.

  55. Howdy! This blog post couldn’t be written any better! Looking at this article reminds me of my previous roommate! He constantly kept talking about this. I will forward this post to him. Pretty sure he will have a good read. I appreciate you for sharing!
    female viagra response
    cheap viagra

  56. You are so interesting! I don’t think I have read a single thing like that before.
    So wonderful to discover somebody with some original thoughts
    on this topic. Seriously.. thank you for starting this up.
    This web site is one thing that is needed on the
    web, someone with a little originality!

  57. Hi, I do think this is an excellent web site. I stumbledupon it 😉 I will come back once again since I book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.
    [url=]viagra 100mg pills for sale[/url]
    viagra come funziona
    viagra for sale

  58. Fingers down, Apple’s app store wins by way of a mile. It is a substantial number of all forms of purposes vs a alternatively disappointed conclusion of a handful for Zune. Microsoft contains systems, especially in just the realm of game titles, yet I’m not indeed I’d need to have towards guess on the foreseeable future if this portion is sizeable toward oneself. The iPod is a much greater preference within that case.

  59. Hi there very nice web site!! Guy .. Excellent .. Amazing .. I’ll bookmark your website and take the feeds additionally? I am happy to seek out a lot of helpful info here within the put up, we want develop more techniques on this regard, thank you for sharing. . . . . .
    canada pharmacies online pharmacy
    [url=]most reliable canadian pharmacies[/url]
    online pharmacy no prescription list of reputable canadian pharmacies

  60. Someone necessarily help to make seriously articles I would state. That is the first time I frequented your website page and so far? I amazed with the research you made to make this actual submit amazing. Excellent task!
    [url=]where can i buy viagra[/url]
    buy cheap viagra online now
    viagra pills

  61. The new Zune browser is surprisingly Terrific, nevertheless not as positive as the iPod’s. It operates effectively, nevertheless isn’t as quick as Safari, and contains a clunkier interface. If by yourself from time to time software upon employing the world-wide-web browser that’s not an issue, however if you’re creating toward read the website alot towards your PMP then the iPod’s greater exhibit and better browser may be major.

  62. Hello, everything is going sound here and ofcourse every one is sharing information, that’s actually excellent, keep up writing.
    [url=]canadian pharmacies online[/url]

  63. I like the valuable information you provide on your articles. I will bookmark your blog and check once more right here frequently. I am fairly certain I’ll be informed many new stuff proper here! Good luck for the next!
    [url=]canadian pharmacies online[/url]

  64. Great beat ! I would like to apprentice whilst you amend your website, how could i subscribe for a blog website? The account aided me a appropriate deal. I have been a little bit acquainted of this your broadcast offered vivid clear concept
    [url=]canadian pharmacies online[/url]

  65. Hi there! Someone in my Myspace group shared this site with us so I came to look it over. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers! Terrific blog and superb style and design.
    best canadian prescription prices
    [url=]canadian pharmacy[/url]
    northwestpharmacy canadian online pharmacy

  66. Hi there, after reading this amazing post i am also happy to share my knowledge here with mates.
    [url=]canadian pharmacies online[/url]

  67. I’m not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your website to come back down the road. All the best
    [url=]canadian pharmacies online[/url]

  68. Fantastic goods from you, man. I’ve understand your stuff previous to and you’re just extremely excellent. I actually like what you’ve acquired here, certainly like what you’re stating and the way in which you say it. You make it enjoyable and you still care for to keep it smart. I can not wait to read far more from you. This is actually a tremendous website.
    [url=]viagra for sale uk[/url]
    viagra gay
    generic viagra

  69. Can you tell us more about this? I’d care to find out some additional information.
    [url=]Canadian Online Pharmacy[/url]

  70. Have you ever considered about adding a little bit more than just your articles? I mean, what you say is important and all. Nevertheless just imagine if you added some great visuals or videos to give your posts more, “pop”! Your content is excellent but with images and video clips, this site could undeniably be one of the best in its field. Wonderful blog!
    [url=]canadian pharmacies online[/url]

  71. I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get got an impatience over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this increase.
    [url=]Canadian Drugs[/url]

  72. Heya! I’m at work browsing your blog from my new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the superb work!
    [url=]Online Pharmacy[/url]

  73. Hi there are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you require any html coding expertise to make your own blog? Any help would be really appreciated!
    web medical information
    [url=]global pharmacy canada[/url]
    international pharmacy canada online pharmacies

  74. Hello there! Do you use Twitter? I’d like to follow you if that would be ok. I’m definitely enjoying your blog and look forward to new posts.
    [url=]Online Pharmacies[/url]

  75. Hello friends, its enormous paragraph regarding teachingand entirely defined, keep it up all the time.
    [url=]canadian pharmacies online[/url]

  76. Magnificent site. Lots of useful info here. I am sending it to some friends ans additionally sharing in delicious. And obviously, thank you to your effort!
    [url=]Canadian Online Pharmacies[/url]

  77. Hi, i think that i saw you visited my website thus i came to “return the favor”.I’m attempting to find things to enhance my site!I suppose its ok to use a few of your ideas!!
    [url=]Canadian Online Pharmacies[/url]

  78. whoah this blog is excellent i really like reading your posts. Stay up the good work! You realize, many people are looking around for this info, you could help them greatly.
    [url=]Canadian Online Pharmacy[/url]

  79. Thank you, I’ve recently been looking for information approximately this subject for a long time and yours is the greatest I have found out so far. But, what concerning the bottom line? Are you positive about the source?
    [url=]Canadian Drugs[/url]

  80. Appreciating the time and effort you put into your website and detailed information you present. It’s good to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.
    [url=]canadian pharmacies online[/url]

  81. What’s up, all is going perfectly here and ofcourse every one is sharing information, that’s in fact good, keep up writing.
    [url=]canadian pharmacies online[/url]

  82. Good day! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!
    [url=]canadian pharmacies online[/url]

  83. Hey there! I could have sworn I’ve been to this blog before but after reading through some of the post I realized it’s new to me. Anyhow, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!
    [url=]canadian pharmacies online[/url]

  84. My brother recommended I might like this web site. He was once entirely right. This submit truly made my day. You can not believe just how much time I had spent for this information! Thanks!
    [url=]Online Pharmacies[/url]

  85. The refreshing Zune browser is shockingly good, nonetheless not as favourable as the iPod’s. It functions very well, nonetheless just isn’t as instant as Safari, and is made up of a clunkier interface. If oneself once in a while software upon employing the web browser which is not an issue, still if you are coming up with to go through the world wide web alot against your PMP then the iPod’s larger show and greater browser may well be sizeable.

  86. Wow, fantastic blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is fantastic, let alone the content!
    [url=]Canadian Online Pharmacies[/url]

  87. certainly like your web-site however you have to test the spelling on several of
    your posts. A njmber of them are rife witrh spelling problems
    annd I to find it very bothersome to inform the reality then agasin I’ll definitely come again again.

  88. Very good post. I absolutely love this site. Stick with it!
    [url=]Canadian Online Pharmacies[/url]

  89. I am in fact happy to read this website posts which consists of lots of helpful information, thanks for providing such statistics.
    [url=]viagra for women[/url]

  90. hi!,I love your writing so so much! proportion we keep up a correspondence more about your post on AOL? I need an expert on this area to solve my problem. May be that’s you! Taking a look forward to peer you.
    [url=]generic viagra 100mg[/url]

  91. I do not know whether it’s just me or if everybody else experiencing problems with your blog. It appears like some of the written text within your posts are running off the screen. Can someone else please provide feedback and let me know if this is happening to them too? This might be a problem with my web browser because I’ve had this happen before. Thank you
    [url=]buy sildenafil online[/url]

  92. You are my breathing in, I possess few blogs and often run out from to brand.I think this website has got some real good information for everyone. “A sense of share is not a bad moral compass.” by Colin.

  93. Hi there to every body, it’s my first go to see of this weblog; this webpage includes awesome and actually excellent information in support of visitors.
    [url=]order viagra[/url]

  94. Good day! This is my 1st comment here so I just wanted to give a quick shout out and tell you I really enjoy reading through your articles. Can you suggest any other blogs/websites/forums that deal with the same topics? Thanks a lot!
    [url=]boots viagra over counter[/url]

  95. I was suggested this web site by my cousin. I am now not positive whether this publish is written by means of him as nobody else recognise such designated about my problem. You are amazing! Thank you!
    [url=]viagra uk[/url]


Please enter your comment!
Please enter your name here