Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap event does not fire for SVG elements anymore #722

Closed
flasaracina opened this issue Aug 24, 2014 · 0 comments
Closed

Tap event does not fire for SVG elements anymore #722

flasaracina opened this issue Aug 24, 2014 · 0 comments
Assignees

Comments

@flasaracina
Copy link

upgrading from version 0.3.4 to 0.3.5 break tap events for SVG elements.
Here's an example:

<polymer-element name="test-tap">
    <template>
    <div on-tap="{{onTap}}" on-click="{{onClick}}">Click me! I'm a div</div>
    <svg>
        <circle cx="10" cy="10" r="2" fill="red" on-tap="{{onTap2}}" on-click="{{onClick2}}"/>
    </svg>
    </template>
    <script>
        (function(){

            Polymer('test-tap', {
                created: function(){

                },
                ready: function(){

                },
                onTap: function(){
                    console.log('tapped on div');
                },
                onTap2: function(){
                    console.log('tapped on circle');
                },
                onClick: function(){
                    console.log('clicked on div');
                },
                onClick2: function(){
                    console.log('clicked on circle');
                }
            });
        }());
    </script>
</polymer-element>

By clicking on the DIV and on the CIRCLE you will see that only the DIV gets two console.log, one for the click and one for the tap event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants