Answer the question
In order to leave comments, you need to log in
How to make smooth pinch-to-zoom with hammer.js?
The project has an svg-frame that needs to be zoomed in the container using pinch-to-zoom. Everything would be fine, but scaling occurs with obvious delays due to brakes. At the same time, the display of the scale value in the text occurs instantly.
How to implement it? I saw many solutions, but they use scaling for the tag itself or for its parent, but this causes a problem: browsers scale internal svg elements as a raster, not a vector, while applying scaling to internal tags in svg is OK, but it slows down.
How to be?
Answer the question
In order to leave comments, you need to log in
www.pixijs.com
+
https://github.com/saschagehlich/pixi-svg-graphics
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question