Wubbadub/ClubHub

Fix editor scrolling

Closed this issue · 4 comments

Description:
Currently the editor guesses the bottom of the editor section using a hard-coded value, this breaks scrolling sometimes. Additionally scrolling when in the editor scrolls both the sidebar and the webpage - this isn't what a user would expect.

Requires:

  • editor section to function

Breakdown:

  • Fix hard-coded padding
  • When the cursor is over the editor panel scroll only the editor, if the cursor is over the webpage scroll only the webpage

Time Estimation:
2 hrs.

hwkr commented

Note: it only scrolls both when the editor scroll tops out or bottoms out. They never both scroll at the same time. (We should still fix this) I think we just need to make the editor always capture scroll.

Do you mean that the editor should always be the first thing to scroll until it bottoms or tops out, or that only the respective pane should scroll when moused over?

hwkr commented

Uhh if you're over the editor it should be the only thing that is allowed to scroll. If it can't scroll (not tall enough) nothing should scroll (IMHO).

Agreed 👍