Answer the question
In order to leave comments, you need to log in
How to block dragging (moving) yandex maps on smartphones?
The site has an adaptive layout and yandex maps. On the phone, when scrolling the page to the map, the map starts scrolling instead of the page, how can it be blocked until some specific event?
I used to meet a site where this was implemented by touching two fingers (something like that). But I don't remember what site it was.
Anyone familiar with this please let me know.
Answer the question
In order to leave comments, you need to log in
the easiest way to block the map is to create a div on top of the map via absolute.
and the event on which to do this is already limited only by your imagination.
example: by default on mobile you create this div (to block the map), and already, for example, by clicking on the div, you remove this element.
I used to meet a site where this was implemented by touching two fingers (something like that). But I don't remember what site it was. - google maps
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question