Closed dfreedm closed 10 years ago
@sorvell @jmesserly @ajklein @rafaelw
the closest bug I could find was https://bugs.webkit.org/show_bug.cgi?id=105406, but i'm not sure it's related.
Horrible workarounds:
document.body.addEventListener('touchstart', function(){})
will trigger the broken node's event handlers, but removeEventListener
will turn them back off again.attachedCallback
to remove and re-add touch listeners.Both are pretty heinous, and would have to be triggered for iOS only.
Let's go with #1 (Safari only) and file a bug.
On Tue, Aug 5, 2014 at 12:18 PM, Daniel Freedman notifications@github.com wrote:
Horrible workarounds:
- document.body.addEventListener('touchstart', function(){}) will trigger the broken node's event handlers, but removeEventListener will turn them back off again.
- Use attachedCallback to remove and re-add touch listeners.
Both are pretty heinous, and would have to be triggered for iOS only.
— Reply to this email directly or view it on GitHub https://github.com/Polymer/polymer-gestures/issues/33#issuecomment-51245787 .
Filed safari bug: https://bugs.webkit.org/show_bug.cgi?id=135628
@sorvell, Should I leave this open to track, or close with the workaround in place?
open, I think.
On Tue, Aug 5, 2014 at 4:46 PM, Daniel Freedman notifications@github.com wrote:
Filed safari bug: https://bugs.webkit.org/show_bug.cgi?id=135628
@sorvell https://github.com/sorvell, Should I leave this open to track, or close with the workaround in place?
— Reply to this email directly or view it on GitHub https://github.com/Polymer/polymer-gestures/issues/33#issuecomment-51275891 .
If touchevent listeners are added to a node from another document, then that node is added to the main document, the touch event listeners will not fire in iOS Safari 7.
Reproduction: