processing / processing/processing4

Horizontal scrolling causes both horizontal and vertical scrollbars to scroll

Open
#430 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug pde
Dominant language
Java
Stars
494
Forks
183
Avg merge
4h 39m
Merged PRs (30d)
3

Description

Created by: Tiger-The-Cat

Description

Horizontal scrolling (shift+scroll) in Python Mode causes both the horizontal scrollbar and the vertical scroll bar to scroll.

Expected Behavior

Upon horizontal scrolling (holding down shift and then scrolling) in any mode, the text should scroll horizontally.

Current Behavior

Upon horizontal scrolling (holding down shift and then scrolling) in Python Mode, both the horizontal and vertical scrollbars scroll.

Steps to Reproduce

  1. Open the editor in Python Mode. (This bug does not occur in Java Mode, which does not let you horizontally scroll at all)
  2. Paste in a vast amount of text that "spills" off of the screen horizontally and vertically (this should be enough text).
  3. Hold down the shift key and then scroll normally.
  4. Observe how both horizontal and vertical scrollbars scroll, when only the horizontal one should.

Your Environment

  • Processing version: 4.0b5
  • Operating System and OS version: Windows 10
  • Other information: Make sure you are using Python Mode and are pasting enough text to make both horizontal and vertically scrollbars appear

Possible Causes / Solutions

Simple IF-Check: check to make sure shift key is not held down before scrolling vertically.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Processing 4.0b5 on Windows 10 using Python Mode, with enough text to create both horizontal and vertical scrollbars. Compare shift-scrolling in Python Mode with Java Mode and verify that horizontal scrolling moves only the horizontal scrollbar while vertical scrolling remains unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.