Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't scroll to end by dragging the scrollbar, when "micromap_on_scrollbar":true #4512

Closed
cser opened this issue Nov 1, 2022 · 10 comments
Closed

Comments

@cser
Copy link

cser commented Nov 1, 2022

It's impossible to scroll to end by mouse drag when wrapped line on screen exists.
image

@veksha
Copy link
Contributor

veksha commented Nov 1, 2022

you have set option micromap_on_scrollbar: True and enabled wordwrapping.
yes this is bug, but you can workaround it by disabling micromap_on_scrollbar

@Alexey-T
Copy link
Owner

Alexey-T commented Nov 1, 2022

cannot repro yet.
I made option "micromap_on_scrollbar":true.
and mouse drag (selection) can go to end.

Screenshot from 2022-11-01 15-16-18

maybe it depends on contents / window size?

@veksha
Copy link
Contributor

veksha commented Nov 1, 2022

drag the scrollbar itself, @Alexey-T

@Alexey-T
Copy link
Owner

Alexey-T commented Nov 1, 2022

now I see!

@cser
Copy link
Author

cser commented Nov 1, 2022

you have set option micromap_on_scrollbar: True and enabled wordwrapping. yes this is bug, but you can workaround it by disabling micromap_on_scrollbar

Missing of micromap is bigger problem that using another ways to scroll, but thank you anyway :)

@Alexey-T Alexey-T changed the title Can't scroll to end by mouse drag Can't scroll to end by dragging the scrollbar, when "micromap_on_scrollbar":true Nov 1, 2022
@veksha
Copy link
Contributor

veksha commented Nov 1, 2022

Missing of micromap is bigger problem that using another ways to scroll, but thank you anyway :)

micromap will not hide, it will be moved to the side of scrollbar.
use action "toggle show micromap" if it is hidden.

PS: or use option "micromap_show"

@cser
Copy link
Author

cser commented Nov 1, 2022

@veksha: ok, now I understand

@Alexey-T
Copy link
Owner

Alexey-T commented Nov 1, 2022

The code needs big(middle) change to fix that.
currently micromap is painted for all lines (also folded+hidden lines) and 1 cell per each line (even if long line is wrapped and it needs N cells).

it is the reason of this bug - wrapped lines need additional cells.

need to paint not lines , but WrapInfo items! at least for the mode "micromap_on_scrollbar".

not simple to add. will see it later.

Alexey-T added a commit to Alexey-T/ATSynEdit that referenced this issue Nov 1, 2022
@Alexey-T
Copy link
Owner

Alexey-T commented Nov 1, 2022

added temp workaround (now I can scroll to the end, if none lines are folded). not 100% correct though (when we have wrapped+folded lines).

@Alexey-T
Copy link
Owner

I gave the new beta to test. in the #4589. so closing this the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants