Skip to content

Limit Horizontal Scrolling of Output Page to Prevent Loss at Screen Edge #2483

Closed
@perminder-17

Description

@perminder-17

p5.js version

No response

What is your operating system?

Windows

Web browser and version

Chrome

Actual Behavior

Currently, when users drag the output page to the right, it continues to scroll indefinitely, which can result in the output page disappearing off-screen.

p5.js.Web.Editor.2.mp4

Expected Behavior

The output page in the code compiler should not be draggable to infinity when the user tries to scroll horizontally. Instead, it should have a limit and stop scrolling at a certain point, for example, at 95% of the screen width. This will prevent users from accidentally losing access to the output page.

W3Schools.Tryit.Editor.mp4

Or, after reaching 100% of the screen width, there should be a noticeable separation or thick strip, clearly indicating the end of the output and distinguishing it from the input section. This design improvement will ensure users have full control over the output while maintaining a clear visual separation between the input and output sections.

Steps to reproduce

  1. Open the code compiler.
  2. Execute some code that generates a lengthy output.
  3. Try to scroll the output page horizontally to the right.

Metadata

Metadata

Assignees

Labels

Area: DesignFor UI/UX design updates, proposals, or feedbackBugError or unexpected behaviors

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions