S
S
Sergey Korenevsky2018-12-18 21:34:57
JavaScript
Sergey Korenevsky, 2018-12-18 21:34:57

How to make buttons shapes inside SVG with (jquery) touchscreen friendly?

I'm making a site with active elements in SVG with a selection of objects for the touch screen.
//tickets-to-circus.rf/product/view/453/2138.html to view HALL DIAGRAM

<svg>
<circle cy=22 cx=33 r= 20></circle>
<circle cy=33 cx=22 r= 20></circle>
</svg>

<script>
jQuery('circle').on('click tap', function(){alert('Тап работает!');});
</script>

We want Circle elements in SVG to act as touch buttons. So that you can poke on them on the touch screen, and that your own logic is executed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2018-12-19
@Dier_Sergio_Great

https://websitebeaver.com/how-to-make-an-interacti...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question