Skip to content

Auto-Scroll to Next Question After Correct Answer Submission for better UX #1

@Manu3lde

Description

@Manu3lde

When completing exercises on the website, if the first question is very long (For example, if occupies 60% or more of the page height) and the next question is significantly shorter, users must manually scroll back up to read the new question after submitting a correct answer. This can be irritating when it happens repeatedly, I propose adding an auto-scroll feature to adjust the viewport to the top of the new question when a correct answer is submitted, improving the user experience.

Steps to Reproduce:
Encounter a long question that takes up 60% or more of the page height in the study guides section.
Submit a correct answer to the question.
Observe that the next question, if significantly shorter, appears at the top of the page, requiring the user to manually scroll up to read it.
Repeat this process across multiple questions to notice the recurring need to scroll.
Expected Behavior:
When a user submits a correct answer, the page should automatically scroll to position the top of the new question at the top of the viewport, ensuring the user can immediately read the next question without manual scrolling.

Actual Behavior:
After submitting a correct answer to a long question, the page does not adjust the scroll position. If the next question is short, it appears at the top of the page, forcing the user to scroll up manually to read it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions