You are not logged in.

1

Tuesday, June 5th 2018, 11:43am

Page scrolls down to viewer

Hello,

I've embedded the viewer on a web page but when the page loads it scrolls down to the viewer. Does anyone know what causes this? It only happens with some viewer, others don't have this problem.

Thank you.

spacerywirtualne

Professional

Posts: 923

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Tuesday, June 5th 2018, 12:30pm

Hello

Look here

Piotr
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

3

Tuesday, June 5th 2018, 1:10pm

Hello

Look here

Piotr
Thanks but that's not what I meant. I have a long web page with the viewer somewhere in the middle. When the page loads the page scrolls down to the viewer.

This post has been edited 1 times, last edit by "Kandob" (Jun 7th 2018, 9:50am)


spacerywirtualne

Professional

Posts: 923

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

4

Tuesday, June 5th 2018, 1:14pm

Thanks but that's not what I meant. I have a long web page with the viewer somewhere in the middle. When the page loads the page scrolls down to the viewer. Here's the link:
Are you sure *question*

Piotr
spacerywirtualne has attached the following image:
  • Zrzut ekranu 2018-06-05 13.12.40_cr.jpg
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

5

Tuesday, June 5th 2018, 1:33pm

Thanks but that's not what I meant. I have a long web page with the viewer somewhere in the middle. When the page loads the page scrolls down to the viewer. Here's the link:
Are you sure *question*

Piotr
Yes I've disabled scrolling inside the viewer, the issue is that the page scrolls down to the viewer as soon as the page loads. By itself.

Tuur

Sage

Posts: 3,203

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

6

Tuesday, June 5th 2018, 3:12pm

Hai,

ik heb net even gecheckt op Mac safari en chrome. maar de pagina blijft gewoon gezellig bovenaanstaand, zoals het 'heurt' zeg maar.
Als je eventueel je VT wil opleuken met custom interface en evt features dan zou ik daar een rol in kunnen spelen. ;-)

Komt je probleem niet door dat de browser wellicht de pagina positie in de url zet?

edit: bij een tweede bezoek zag ik dat hij inderdaad snel even de VT laat zien en dan naar de top gaat. *huh*
**
English
Just checked on Mac safari and Chrome.. can't repeat your issue.
I could help spicing you rVT though ;-)
Is the issue not caused by some page position in url or so?

edit: when visited for a second time i saw that it shortly showed the VT before it shows the top of the page..
... *huh*


Groetjes van
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

7

Tuesday, June 5th 2018, 3:31pm

Hai,

ik heb net even gecheckt op Mac safari en chrome. maar de pagina blijft gewoon gezellig bovenaanstaand, zoals het 'heurt' zeg maar.
Als je eventueel je VT wil opleuken met custom interface en evt features dan zou ik daar een rol in kunnen spelen. ;-)

Komt je probleem niet door dat de browser wellicht de pagina positie in de url zet?

edit: bij een tweede bezoek zag ik dat hij inderdaad snel even de VT laat zien en dan naar de top gaat. *huh*
**
English
Just checked on Mac safari and Chrome.. can't repeat your issue.
I could help spicing you rVT though ;-)
Is the issue not caused by some page position in url or so?

edit: when visited for a second time i saw that it shortly showed the VT before it shows the top of the page..
... *huh*


Groetjes van
Tuur *thumbsup*
Hey Tuur, bedankt voor je reactie. Het gebeurt inderdaad niet de eerste keer dat je de pagina bezoekt, alleen na het refreshen. Dit gebeurt ook alleen bij een aantal VTs, er is geen extra code toegevoegd.

8

Wednesday, June 6th 2018, 2:03pm

Hi,

update the krpano version or set the focus embedding setting to false:
https://krpano.com/docu/html/#focus

Getting the focus causes some browsers to scroll to the element that has the focus.

In newer krpano version the focus will be not set by default when not embedded as full-page-element.

Best regards,
Klaus