Z
Z
zlodiak2018-08-07 22:50:13
JavaScript
zlodiak, 2018-08-07 22:50:13

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 5b69f7a7e93af396090035.pngthis 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

1 answer(s)
0
0xD34F, 2018-08-07
@zlodiak

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.Playeryou 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 question

Ask a Question

731 491 924 answers to any question