Problem with scrolling textfield and loading a new panorama

  • Hi,

    On my tour I'm using a textfield plugin and I want the text to be scrollable so I used exactly the same code as show in the examples page:
    https://krpano.com/examples/10815…gtextfield.html

    When I change a panorama I also want the text in the textfield to change so in the new panorama's xml I set:

    Code
    <action name="onxmlcompleteaction">
    set(layer[text].html, 'data:newtext');
    </action>
    
    
    <data name="newtext">
    		Lorem ipsum...
    </data>

    The text changes fine, but if I scrolled the text before, then after loading the new panorama the new text doesn't show from the beggining and the scroll position doesn't 'reset' to the top.
    How can i reset the scroll to the top after loading a new pano so the new text will be shown from the beggining and not somewhere in the middle?

    This causes a big problem especially if the previous text was long and I scrolled it down to the end and the new text is, for example only one short sentence - then it doesn't show at all. it only resets to the top after pressing the scroll buttons...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!