laviastar / iscroll-js

Automatically exported from code.google.com/p/iscroll-js
MIT License
2 stars 2 forks source link

Google Chrome Click Events #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup an area with the scroller.
2. Add a link to the area, and attach a click event.

What is the expected output? What do you see instead?
The event should fire when you click the link, but instead it doesn't.

What version of the product are you using? On what operating system?
3.4.4, but also earlier versions, I'm not sure if its just 3.4 or also earlier.

Please provide any additional information below.

Original issue reported on code.google.com by ritter...@gmail.com on 30 Jun 2010 at 1:50

GoogleCodeExporter commented 9 years ago
It seems a bug in chrome events capturing. I'll look into this.

Original comment by mat...@gmail.com on 2 Jul 2010 at 5:57

GoogleCodeExporter commented 9 years ago

Original comment by mat...@gmail.com on 3 Jul 2010 at 5:45

GoogleCodeExporter commented 9 years ago
The error is on line 64 and not a bug with Chrome's event capturing.  The event 
is being bound on capture and not bubble.  It is expected behavior therefore 
that it would trigger before any events bound in the bubble phase.  A simple 
and annoying workaround is to set all your click handlers to the capture phase 
as well.

The real fix is for iscroll to implement:
this.element.addEventListener('click', this, false);

Original comment by tim.bran...@gmail.com on 6 Jul 2010 at 3:47

GoogleCodeExporter commented 9 years ago
It works ! thanks a lot

Original comment by ph.charriere on 9 Jul 2010 at 4:23

GoogleCodeExporter commented 9 years ago
should be fixed in latest update

Original comment by mat...@gmail.com on 24 Aug 2010 at 6:22