Answer the question
In order to leave comments, you need to log in
How to override the panorama close button in full screen mode?
Faced with an inexplicable phenomenon. Please help me solve the problem.
In panorama mode, if you put a block on top of the close panorama button using z-index, then the panorama button cannot be clicked. This is expected.
But in the full-screen panorama mode (which is set using this button), the case described above does not work. But I would like it to work, that is, it would still be impossible to click on the native icon for closing the panorama.
JSFIDDLE
Answer the question
In order to leave comments, you need to log in
It's not very clear what you are trying to achieve. If it is impossible to close the panorama, then do not create a close button, when calling, ymaps.panorama.Player
you can specify the controls property, just like the map.
If you want the button to be there, but it can't be used... well, I don't know, set it when going to full screen mode, for example. Or just hide. pointer-events: none
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question