You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Mudin

Beginner

  • "Mudin" started this thread

Posts: 27

Location: South Korea

Occupation: VR Developer

  • Send private message

1

Monday, July 4th 2016, 5:58am

View change event never stops when dislay none

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

2

Friday, July 8th 2016, 12:58pm

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:
http://krpano.com/docu/html/#removing

Best regards,
Klaus

Mudin

Beginner

  • "Mudin" started this thread

Posts: 27

Location: South Korea

Occupation: VR Developer

  • Send private message

3

Thursday, July 14th 2016, 12:09pm

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. *smile*

Thank you,

Best regards,

Mudin

Mudin

Beginner

  • "Mudin" started this thread

Posts: 27

Location: South Korea

Occupation: VR Developer

  • Send private message

4

Tuesday, August 2nd 2016, 11:40am

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

5

Tuesday, August 2nd 2016, 4:31pm

Hi,

that will be fixed in the next release (maybe tomorrow).

Best regards,
Klaus

6

Friday, August 5th 2016, 10:21pm

Should be fixed in 1.19-pr6:
krpano 1.19-pr4 / 1.19-pr5 / 1.19-pr6

Mudin

Beginner

  • "Mudin" started this thread

Posts: 27

Location: South Korea

Occupation: VR Developer

  • Send private message

7

Wednesday, August 10th 2016, 5:14am

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