Skip to content

Hint not folding, only the hint text is hidden #104

@duianto

Description

@duianto

Describe the bug
Clicking to the left of a indented hints header, stops the hint from folding,
until the hint header is double clicked quickly.

To Reproduce
Steps to reproduce the bug:

  1. Go to Fix Your First Error
    https://gdquest.github.io/learn-gdscript/#course/lesson-2-your-first-error/practice-85733.tres
  2. Click on Hints, it unfolds and hint 1 and hint 2 are shown
  3. Click on Hint 1, it unfolds and shows hint 1's text
  4. Click on the empty indented area to the left of the Hint 1 header
  5. Click on the Hint 1 header, only hint 1's text is hidden, but Hint 1 isn't folded

Expected behavior
Hint 1 should fold if it's unfolded.

Screenshots

learn-gdscript-hint-folding-issue.mp4

Screen recording explained:

  • Hints is clicked, it unfolds and shows: Hint 1 and Hint 2.
  • Hint 1 is clicked, it unfolds and shows Hint 1's text.
  • Hint 1 is clicked again, it folds and Hint 1's text is hidden.
  • Hint 1 is clicked again, it unfolds and shows Hint 1's text.
  • The empty indentation area, to the left of Hint 1 is clicked,
    nothing happens visually (Two possibilities, more info below).
  • Hint 1 is clicked, the triangle to the right rotates,
    and the hint 1 text is hidden, but Hint 1 doesn't fold,
    it just shows an empty area where the Hint 1 text was.
  • Hint 1 is clicked, and Hint 1's text appears.
  • Hint 1 is double-clicked quickly, Hint 1's text disappears,
    Hint 1 folds, Hint 1's text is shown, because Hint 1 unfolds
    and the Hint 1 text is drawn from the top down.
  • Hint 1 is clicked, Hint 1's text is hidden, and Hint 1 folds.
  • Hint 1 is clicked again, it unfolds and Hint 1's text appears.

Information about your device (please complete the following information):
Operating System: Windows 10 21H1
Browser: Microsoft Edge 96.0.1054.62 (Official build) (64-bit)

Additional context
Continued from above:
There seems to be two possibilities, if the empty area to the left of the Hint 1 header is clicked.

  • Fold the hint to the right.
  • Do nothing

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions