Skip to content

Minimap: scrolling up in large file makes the slider jump a little bit #21346

Closed

Description

Steps to Reproduce:

  1. macOS with zoom mode 1
  2. large file with 30k lines scrolled all the way down
  3. use mouse wheel to scroll up

=> at some point the thumb jumps up and then on the next scroll jumps down again
=> the other scrollbar does not show this behaviour

untitled

Activity

  1. added
    editor-minimap
    on Feb 24, 2017
  2. alexdima commented on Feb 24, 2017

    @alexdima
    Member

    I've tried to work around this tremor in some cases, but there are still cases where it occurs.

    The root cause is:

    • the minimap does not render partial lines. i.e. if a line is painted with 2px height, at y = 0 in the minimap there will always be a full line starting
    • the viewport renders partial lines
    • depending on the scrollTop, the viewport can contain N or N + 1 lines (where the first and last lines are only partially visible)
    • in such cases the minimap slider has this tremor.

    Very annoying indeed.

  3. changed the title [-]Minimap: scrolling up in large folder makes the thumb jump a little bit[/-] [+]Minimap: scrolling up in large file makes the thumb jump a little bit[/+] on Feb 24, 2017
  4. changed the title [-]Minimap: scrolling up in large file makes the thumb jump a little bit[/-] [+]Minimap: scrolling up in large file makes the slider jump a little bit[/+] on Feb 24, 2017
  5. levani commented on Mar 12, 2017

    @levani

    Not sure if it's the same problem but the slider also jumps when dragging by cursor.

    scroll

  6. added
    bug
    on Apr 27, 2017
  7. jens1o commented on Jun 7, 2017

    @jens1o
    Contributor

    does f5e4e4f closes this issue? alexandrudima

  8. alexdima commented on Jun 7, 2017

    @alexdima
    Member

    6df8165 should hopefully fix it

  9. locked and limited conversation to collaborators on Nov 17, 2017
  10. added a commit that references this issue on Sep 6, 2026
    9b04386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-minimapverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions