when there is a iframe with zepto inside, a trigger for touchend may lead to an error #576

Closed
maisui99 opened this Issue Sep 5, 2012 · 4 comments

Comments

Projects
None yet
3 participants

maisui99 commented Sep 5, 2012

I've build a suit on http://jsfiddle.net/57dZQ/

it seems that the callback of 'touchend' in zepto.js:1340 execute twice

:(

  • to reproduce this issue, you need to open the 'Emulate touch events' of chrome developer tool
  • then open http://jsfiddle.net/57dZQ/
  • and wait for a while, click the iframe whose src is 'zeptojs.com', you will see some error log 'Uncaught TypeError: Cannot call method 'trigger' of undefined '

is anyone who was faced with the same problem?

Collaborator

mislav commented Sep 7, 2012

Can't reproduce (Chrome 21.0.1180.89)

Only happens in an iframe? Smells like browser bug with emulating touch events, not Zepto bug.

maisui99 commented Sep 8, 2012

em, i tried to reproduce on another computer with different version of chrome, and they are all result in error called 'Uncaught TypeError: Cannot call method 'trigger' of undefined '.

have you open the option of 'Emulate touch events' ?

just open this option and click the iframe in http://jsfiddle.net/57dZQ/

it seems that this issure only happens in iframe.

screenshot

maisui99 commented Sep 8, 2012

just click where the mouse point

:)

Owner

madrobby commented Nov 24, 2013

Can't reproduce & closing. Feel free to re-open with a test case that fails for current master when including touch.js.

@madrobby madrobby closed this Nov 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment