7

When composing or editing a post, if you click the preview, the text area becomes focused.

Here are two main problems:

  1. I scrolled the preview to the end, accidentally clicked it and... ARGH! The page scrolled to the top.
  2. I clicked the preview, accidentally typed something... Oh, no! The random characters are now in the post.

Please remove the listener or at least make the cursor in the text area move to the same place, where the preview was clicked (to get at least any benefit of the listener).


P.S. I've seen Disable annoying autofocus when clicking preview with , but the listener wasn't removed. Also, my proposition is slightly different.

6
  • 4
    And even more: the issue occurres even when you click a button in a runned code snippet.
    – Kastet6398
    Commented Mar 12 at 10:37
  • 3
    I have also encountered this and find it obnoxious. It very definitely has not been fixed, contra the resolution of that other question. Curiously, it doesn't happen when editing, only when submitting a new post. Commented Mar 12 at 21:18
  • Point 2 isn't very strong. Where else would you expect your typed characters to appear?
    – Cerbrus
    Commented Mar 16 at 9:41
  • 1
    "or at least make the cursor in the text area move to the same place" I think that would be a nice double-click feature. IIRC, VS Code's builtin markdown preview works like that.
    – starball
    Commented Mar 16 at 9:58
  • 2
    @Cerbrus I typed some characters accidentally, so, without the listener, they wouldn't appear anywhere.
    – Kastet6398
    Commented Mar 16 at 17:35
  • 4
    @Cerbrus if I click the preview, I would expect the text area to lose focus, and therefore would be surprised by typed characters appearing there. I would expect them not to appear anywhere, because I would not expect any UI element to have focus that could accept the text. Commented Mar 16 at 19:17

0

You must log in to answer this question.

Browse other questions tagged .