Hello everyone,
What could be the reason why onviewchange event is occurring continuously when krpano div's dislay is none?
I need to hide it sometimes, but when I hide it, it makes performance low.
Any hint appreciated!
Mudin
Hello everyone,
What could be the reason why onviewchange event is occurring continuously when krpano div's dislay is none?
I need to hide it sometimes, but when I hide it, it makes performance low.
Any hint appreciated!
Mudin
Hi,
a display=none might lead to a 0x0 viewer size and that might be problematic... (I haven't tested that case, but I will do).
Maybe try removing the viewer:
https://krpano.com/docu/html/#removing
Best regards,
Klaus
Hello, Klaus
Thank you very much for your reply.
I am already using viewer removing.
But I am developing a single page app which changes leaflet map and krpano viewer a lot.
I need to embed viewer again every time when users want to see the viewer.
When embedding it, I need to call a function onready. It is slower than just hiding using css (dislay=none).
Kindly let us know if there will be other solution.
Thank you,
Best regards,
Mudin
Hello, Klaus!
I am still needing a solution for this.
a display=none might lead to a 0x0 viewer size and that might be problematic... (I haven't tested that case, but I will do).
have you tested the case display=none?
It would be decent of you if you could give me some hands upon tackling this matter!
Thank you,
Mudin
Hi,
that will be fixed in the next release (maybe tomorrow).
Best regards,
Klaus
Should be fixed in 1.19-pr6:
krpano 1.19-pr4 / 1.19-pr5 / 1.19-pr6
Should be fixed in 1.19-pr6:
krpano 1.19-pr4 / 1.19-pr5 / 1.19-pr6
Hello, Klaus
Thank you for answering and new release!
I will check it
Best regards,
Mudin
Don’t have an account yet? Register yourself now and be a part of our community!