Skip to content

fix: add offsets to auto scroll row values to prevent scrolling when reaching first and last row#368

Merged
Gumball2415 merged 4 commits intoDn-Programming-Core-Management:mainfrom
henrikvilhelmberglund:fix-scroll-0-issue
Aug 6, 2025
Merged

fix: add offsets to auto scroll row values to prevent scrolling when reaching first and last row#368
Gumball2415 merged 4 commits intoDn-Programming-Core-Management:mainfrom
henrikvilhelmberglund:fix-scroll-0-issue

Conversation

@henrikvilhelmberglund
Copy link
Copy Markdown
Contributor

@henrikvilhelmberglund henrikvilhelmberglund commented Aug 2, 2025

This pull request aims to change auto scroll to not scroll when dragging to row 0 and the last row to make row 0 and the last row selectable. This is done by adding a -1 offset to the auto scroll row value for SCROLL_UP and adding a +1 offset to to the auto scroll row value for SCROLL_DOWN.

Right now this happens:
mousecausesscroll

After this PR:
mousecausesscrollfixed

It is still possible to scroll to the previous rows but only above row 0 which makes row 0 actually selectable. The same is true for the last row.

This PR also adds /utf-8 in the build additional options to make building possible on Windows computers with Japanese system codes.

fixes #351

Changes in this PR:

@henrikvilhelmberglund
Copy link
Copy Markdown
Contributor Author

Also noticed my commit messages are removed (the part after fix: ), not sure what's up with that...

@Gumball2415
Copy link
Copy Markdown
Collaborator

side note: should the last two rows be also selectable? currently (since vanilla), selecting the last two rows also triggers scrolling.

@henrikvilhelmberglund
Copy link
Copy Markdown
Contributor Author

Sure, I increased the offset at the bottom by 4 rows, this should allow for selecting the last visible rows with some leeway for sloppy selections.

@henrikvilhelmberglund henrikvilhelmberglund changed the title fix: add -1 offset to auto scroll row value to prevent scrolling when reaching row 0 fix: add offsets to auto scroll row values to prevent scrolling when reaching first and last row Aug 5, 2025
@Gumball2415
Copy link
Copy Markdown
Collaborator

lgtm, merging soon

Comment thread Dn-FamiTracker.vcxproj
@Gumball2415 Gumball2415 merged commit 4af1f6b into Dn-Programming-Core-Management:main Aug 6, 2025
Gumball2415 added a commit that referenced this pull request Aug 6, 2025
This addresses a comment in #368. This enables building on computers
with non-English system locales.
Gumball2415 added a commit that referenced this pull request Aug 9, 2025
This addresses a comment in #368. This enables building on computers
with non-English system locales.
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.

Using a mouse and selecting first row from below causes scrolling

2 participants