Skip to content

scroll does not occur on overflow #93

Open

Description

@WhyFenceCode

While the scrollbar appears it does not auto scroll and so the cursor goes offscreen. It would be nice to have a plugin to do this, so that the user does not need to manually scroll, and so that the side scroll snaps to the cursor if it goes offscreen.

Activity

  1. WebCoder49 commented on Apr 9, 2024

    @WebCoder49
    Owner

    As this is part of the default functionality of a <textarea> element (I think), this should be implemented in the core code, not as a separate plugin. Thank you for pointing it out!

    I am quite busy now but will try to start implementing it as soon as possible after 25 May.

  2. self-assigned this
    on May 25, 2024
  3. WebCoder49 commented on May 27, 2024

    @WebCoder49
    Owner

    This occurs on any of these three occasions:

    • Large piece of text pasted onto a line - goes to middle of pasted text. [Regardless of Indent plugin]
    • Indent plugin enabled and Enter key pressed
    • Indent plugin enabled and Tab key pressed

    These are replicated in both Chromium [MS Edge 125.0.2535.51 (Official build) (64-bit)] and Firefox [Developer Edition 127.0b5 (64-bit)] on Windows 11. However, in Firefox pressing the Tab key without selecting text will scroll the textarea right, but only this.

  4. linked a pull request that will close this issueFix caret out of view #100on May 27, 2024
  5. WebCoder49 commented on Jun 16, 2024

    @WebCoder49
    Owner

    Fix #100 inadvertently caused bug #115, which makes code-input unusable on mobile devices (note to self: always test on mobile devices!). Another fix is needed that does not blur then focus the textarea, or that does it without interrupting mobile phone typing.

  6. added
    bugSomething isn't working
    area:coreA bug/feature for the core code-input.js/code-input.css files
    on Oct 23, 2024
  7. added
    area:browserA bug caused by one or more browser/web rendering engine implementations.
    and removed
    area:coreA bug/feature for the core code-input.js/code-input.css files
    on Jul 18, 2025
  8. added this to the v3.0.0 milestone on Jul 18, 2025
  9. WebCoder49 commented on Mar 16, 2026

    @WebCoder49
    Owner

    let-textareas-do-their-job is the most obvious fix to this that doesn't cause a regression, mentioned at #148. It's a breaking change.

  10. removed their assignment
    on Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:browserA bug caused by one or more browser/web rendering engine implementations.breaking-changebugSomething isn't workingpriority:medium

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions