progress.progress only work on scope=local?Loading Progress demo bug

  • since version1.2,it can't display progress' correct value.

    if action not set scope="local",it will show like:
    0%
    17%

    and then the layer (loadingpercent_text) will be hide


    link:https://krpano.com/releases/1.20.…ress/index.html

    xml:https://krpano.com/viewsource.htm…percenttext.xml

    fix code:

    code:

    krpano example:

    fix:

    Einmal editiert, zuletzt von arielei (18. Februar 2021 um 05:42)

  • Hi,

    sorry, but I don't understand that case...
    For me the example as it is, is working correctly...

    About scope=local - just adding that to the original example wouldn't work because both actions (loadingpercent_startloading and loadingpercent_stoploading) are using the same variables. Here optionally also a private local scope could be used to share the variables.

    Best regards,
    Klaus

  • Hi,

    sorry, but I don't understand that case...
    For me the example as it is, is working correctly...

    About scope=local - just adding that to the original example wouldn't work because both actions (loadingpercent_startloading and loadingpercent_stoploading) are using the same variables. Here optionally also a private local scope could be used to share the variables.

    Best regards,
    Klaus

    1.20.9 original example:

    result:

    Code
    INFO: krpano 1.20.9 (build 2020-11-19)
    INFO: HTML5/Desktop - Chrome 88.0 - WebGL
    INFO: percent_text:0 [145x]
    INFO: percent_text:17
    INFO: percent_text:33 [15x]

    1.20.9 my code:

    result:

    Code
    INFO: krpano 1.20.9 (build 2020-11-19)
    INFO: HTML5/Desktop - Chrome 88.0 - WebGL
    INFO: percent_text:0 [162x]
    INFO: percent_text:17
    INFO: percent_text:33 [87x]
    INFO: percent_text:50 [30x]
    INFO: percent_text:67 [76x]
    INFO: percent_text:83 [48x]
    INFO: percent_text:100 [16x]


    1.19.10 original example result:

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!