Skip to content

Bug fixes about scroller#123

Open
yl12053 wants to merge 5 commits into
0999312:1.21from
yl12053:1.21
Open

Bug fixes about scroller#123
yl12053 wants to merge 5 commits into
0999312:1.21from
yl12053:1.21

Conversation

@yl12053

@yl12053 yl12053 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

yl12053 added 5 commits June 17, 2026 05:17
1. The scroller touch area should be 31 ~ 85 but not 9 + 54
2. The mouseClicked wrongly short-cut once the window cannot show up to 12 elements fully
Copilot AI review requested due to automatic review settings June 16, 2026 21:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR adjusts UI click handling and scrollbar hitbox positioning in selection screens, and updates the Curios Maven source and dependency version.

Changes:

  • Prevent early exit from mouseClicked when the result list is shorter than the loop range (use break instead of delegating to super mid-loop).
  • Move the scrollbar click target down (topPos + 9topPos + 31) in both selection screens.
  • Update Curios Maven repo URL and bump curios-neoforge dependency version.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/main/java/net/tracen/umapyoi/client/screen/UmaSelectScreen.java Tweaks click loop control flow and updates scroller hitbox Y offset.
src/main/java/net/tracen/umapyoi/client/screen/RaceSelectScreen.java Same click loop + scroller hitbox Y offset updates as UmaSelectScreen.
build.gradle Switches Curios Maven repo URL and bumps Curios dependency version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 329 to +331
for (int l = this.startIndex; l < k; ++l) {
if(l >= this.getResults().size())
return super.mouseClicked(pMouseX, pMouseY, pButton);
break;

i = this.leftPos + 119;
j = this.topPos + 9;
j = this.topPos + 31;
Comment on lines 285 to +287
for (int l = this.startIndex; l < k; ++l) {
if(l >= this.getResults().size())
return super.mouseClicked(pMouseX, pMouseY, pButton);
break;

i = this.leftPos + 119;
j = this.topPos + 9;
j = this.topPos + 31;
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