Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comcan you show some bare bone code or example?
I just tried a bit but seems quite smooth to me.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<layer name="test" align="center" height="100%" width="prop" url="bg.png" onclick="resize()" /> <action name="resize" scope="local"> if(caller.height == 100%, tween(caller.height,90%,2,linear); , tween(caller.height,100%,2,linear); ); </action> |
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comMaybe... But how to fix it?i think it has to do with a rounding issue when the layer is centered ....
depending on the size there is a 1px shift where the layer is positioned ...
you could try to have it right/left aligned for a test.
i think it doesnt happen there
|
|
Quellcode |
1 |
<layer name="test" ... cycle="0" .../> |
That would reduce the shakyness, but it also changes the direction of the animation.Maybe use changeorigin
I did so on line 5bdw, Declare the value for cycle earlier in the layer code.
That seems to solve it! ThanksTo disable that pixel-grid-fitting add accuracy="1" to the layer:
https://krpano.com/docu/xml/#layer.accuracy