-
Notifications
You must be signed in to change notification settings - Fork 160
PointerEvents not initializing properly for SVG elements with 0.2.0+ #134
Comments
I'm assuming it comes from some subtle timing issue related to this commit:
|
Might have to do with React doing its own work at |
Update: seems due to Polymer/polymer#440 we had been using Polymer 0.2.0 with Platform 0.1.4. This bug has appeared between 0.1.4 and 0.2.0 |
The real issue is Polymer/ShadowDOM#394 |
I think this is actually a safari bug, which I used the same workaround for in googlearchive/polymer-gestures#33 |
Reopening for future interested parties. |
@azakus / @scottgonzalez, would including the Safari bug workaround described at googlearchive/polymer-gestures#33 be within the scope of the pep.js project? I could probably help with a PR if so... Possible approaches:
|
A quick update for anyone experiencing the same issue: it looks like events are correctly dispatched when touching elements within the SVG, just not the SVG element itself. Adding a transparent rectangle with 100% width and height allows touches to generate events which bubble up and can then be caught on the SVG. |
PEP has now entered emeritus status at the OpenJS Foundation. This repository is now archived. |
It seems PointerEvents are badly broken in 0.2.1. When I load noflo-ui with the new Polymer & platform release, none of the pointer events or gestures are working.
Now, in JavaScript console I do:
I try dragging in the graph editor, and nothing happens. No console output.
However, once I add this:
everything starts working properly.
The text was updated successfully, but these errors were encountered: