D
D
Dmitry Dmitriev2017-04-01 17:23:03
HTML
Dmitry Dmitriev, 2017-04-01 17:23:03

How to remove mobile scrolling on Yandex.Maps?

I am making a website. I inserted the Yandex map code from the map constructor. To prevent the map from scrolling with the mouse wheel when the cursor is on it, I removed the scroll parameter from the code.
When I go to the site from my mobile and scroll down the page and put my finger on the map, the page scrolling stops, the map starts scrolling. Accordingly, page navigation becomes impossible. Any up and down movements of your finger to leave the map will only flip the map. How to make the map not scroll, but the controls remain and you can change the scale, layers, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2017-04-03
@freeExec

Have you tried this as advised in the first similar question that came across ?

так отключаются мультитач жесты
map.behaviors.disable('multiTouch');

а так перетаскивание карты
map.behaviors.disable('drag');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question