How to scroll html in plugin?

  • I created a plugin to show modal when clicking on hotspot , by passing in html but I can't use the scroll wheel to move the content of the html , it only changes the zoom, I tried giving the plugin a value onhover_autoscrolling= "false" but still not working *confused*

    *thumbup* Woody *thumbup* KEEP MOVING FORWARD *thumbup*

  • I created a plugin to show modal when clicking on hotspot , by passing in html but I can't use the scroll wheel to move the content of the html , it only changes the zoom, I tried giving the plugin a value onhover_autoscrolling= "false" but still not working *confused*


    Can you share some code on how you create the "modal" ?


  • Can you share some code on how you create the "modal" ?

    *thumbup* Woody *thumbup* KEEP MOVING FORWARD *thumbup*

  • The setting onhover_autoscrolling= "false" is only for the scrollarea plugin (https://krpano.com/plugins/scrollarea/) Since you created your own plugin, you need to handle this yourself.

    You can disable scrolling by setting the "disablewheel" of the control to true.
    https://krpano.com/docu/xml/#control.disablewheel

    krpano action code:

    Code
    set(control.disablewheel, true);

    And you can set it to false again when hiding the dialog.

    gr,
    kme
    .

  • The setting onhover_autoscrolling= "false" is only for the scrollarea plugin (https://krpano.com/plugins/scrollarea/) Since you created your own plugin, you need to handle this yourself.

    You can disable scrolling by setting the "disablewheel" of the control to true.
    https://krpano.com/docu/xml/#control.disablewheel

    krpano action code:

    Code
    set(control.disablewheel, true);

    And you can set it to false again when hiding the dialog.

    gr,
    kme
    .

    thank you very much, it's work

    *thumbup* Woody *thumbup* KEEP MOVING FORWARD *thumbup*

Jetzt mitmachen!

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