Answer the question
In order to leave comments, you need to log in
How to remove the scroll from Yandex maps?
In the mobile version of the site, if the map takes up the entire screen, the user cannot scroll down the page. What I did:
map.behaviors.disable('scrollZoom'); // — это отключает зум колёсиком мышки, всё ок.
map.behaviors.disable('multiTouch'); // — это отключает зум щипком, не очень нужно.
map.behaviors.disable('drag'); // — это отключает прокрутку карты, но есть одно "но": сама страница также не прокручивается.
Answer the question
In order to leave comments, you need to log in
you can override the style
.ymaps-map {
-ms-touch-action: auto !important;
touch-action: auto !important;
}
Look at this question from the other side. Remove it in the mobile version with CSS and display it next with the help of the maps API, but already in static mode, using CSS classes bootstram (hidden-phone, visible-phone). Implemented like this here: sohoclinic.ru/kontakty
This article helped
https://sajgak.ru/site/javascript/otkljuchit-na-ja...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question