processing4 icon indicating copy to clipboard operation
processing4 copied to clipboard

Horizontal scrolling causes both horizontal and vertical scrollbars to scroll

Open processing-bot opened this issue 3 years ago • 0 comments

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.

processing-bot avatar Mar 03 '22 04:03 processing-bot