Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Multiple clicks registered, and fired, within #scroller... #19

Open
hackcess opened this Issue · 1 comment

2 participants

@hackcess

Nobody seems to notice this "bug" so it probably isn't. But here's my issue:

In the demo there are some inline href links within the text (inside the #scroller div). Links at this level appear to receive 2 clicks.

Simply add a "_blank" as the target and every link will open 2 browser windows. Links OUTSIDE the #scroller work fine. For example, find the following:

<a href="http://uxebu.com/blog"> our blog</a>

And replace with:

<a href="http://uxebu.com/blog" target="_blank"> our blog</a>

... 2 browser windows will load. The exact same thing happens if you try to put some inline javascript (onClick) to call js functions—but only if your link is within #scroller.

If I'm "doing it wrong" it's non-obvious to me what it can be.

@voxpelli

My guess is that this is due to the clickEvent that TouchScroll throws at touchEnd: https://github.com/davidaurelio/TouchScroll/blob/master/src/touchscroll.js#L596

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.