Skip to content

fix(lib.minimap): scroll by drag if scrollPastEnd#812

Merged
aminya merged 1 commit intoatom-minimap:masterfrom
vlad0337187:patch-1
Oct 12, 2024
Merged

fix(lib.minimap): scroll by drag if scrollPastEnd#812
aminya merged 1 commit intoatom-minimap:masterfrom
vlad0337187:patch-1

Conversation

@vlad0337187
Copy link
Copy Markdown
Contributor

@vlad0337187 vlad0337187 commented Oct 4, 2024

Previously there was problem if scroll past end enabled.

No scroll past end - all is well.
Enabled - there's some offset between mouse on screen on minimap and actual screen.
Screencast: https://youtu.be/zfAk14_9CEQ

This should fix it.

I checked by console.log when scrolling, mouse position was bigger when scrolling to bottom then height of minimap.
So it didn't account space added if scroll past end enabled.
"Minimap.getHeight" should return total height of minimap (is this true ?) (I read it in method description), so this PR also accounts space after last line added if scroll past end enabled.

@vlad0337187
Copy link
Copy Markdown
Contributor Author

@UziTech , Hi.

I saw you previously merged some PRs to this repository.
Could you please review this and probably merge ?

Thanks.

@aminya aminya merged commit c0e2b55 into atom-minimap:master Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants