-
Hello everyone, I am building an experiment in jsPsych 7.1, and would like to use the Instructions plugin. However, when I move from one page of instructions to another, my vertical scrollbar does not reset to the top of the page. I have attached a series of screenshots to help visualize this problem: Here is the code corresponding to my experiment:
I am unsure where the bugs are in the above code. Does anyone know how I can fix the position of my scrollbar? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @woodenchair, I think you can use You could add this to the plugin code inside the |
Beta Was this translation helpful? Give feedback.
Hey @woodenchair,
I think you can use
window.scrollTo(0,0)
to reset the scrolling. MDN docs.You could add this to the plugin code inside the
show_current_page()
function so that the scrolling resets whenever the page changes.