Skip to main content
Participant
March 6, 2022
Question

HTML5 Canvas - Scrollable area

  • March 6, 2022
  • 1 reply
  • 355 views

Hi,

I would like to create an area (like a div) in the stage and make it scrollable. Is it possible in HTML5 Canvas ?

Many thanks

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    March 6, 2022

    yes.  eg, you could create a masked movieclip that "scrolls" (ie, changes its y-position) in response to the mousewheel event.

    Participant
    March 6, 2022

    Thank you,

    Ok, it mean that i need to code something ?

    I will try

    kglad
    Community Expert
    Community Expert
    March 6, 2022

    yes.  you'll need to add a  scrollwheel listener and possibly mouseover/out  listeners.