Click not realy triggered

Jul 23, 2012 at 9:07 AM
Edited Jul 23, 2012 at 9:10 AM


I use wipetouch for an iPad project, it work realy good, very simple to implement, it's cool!


But I have an issue with it, a link element (<a href="">) doesn't work when I listen swipe event on it container. It work if there is a jQuery event, but not if it is simple link, with just a "href" attribute.

I founded the mistake, near line 268, you do a "touchedElement.trigger("click");", but this only dispatch jquery event, not a "real" click.

In my case, I just replace this line by


var eClick = document.createEvent('MouseEvent');
eClick.initMouseEvent('click', true, true, window, 1,startX, startY, startX, startY, false, false, false, false, 0, null);
var rootNode =;
while (rootNode.nodeType !== 1) {
rootNode = rootNode.parentNode;
It's create a real click event in javascript, and so, it's work both with jquery event and without.
Maybe it could be a good feature to test and implement in a future version?
(sorry for my english.. hope you'll understand me!)
Mar 22, 2013 at 12:11 PM
Thank's for sharing, you save a lot of my time!