Skip to content

Fix reverse flag comparison typo in scroll options equality#909

Merged
Caldis merged 1 commit intoCaldis:masterfrom
seng1e:fix/options-scroll-equatable-typo
Apr 21, 2026
Merged

Fix reverse flag comparison typo in scroll options equality#909
Caldis merged 1 commit intoCaldis:masterfrom
seng1e:fix/options-scroll-equatable-typo

Conversation

@seng1e
Copy link
Copy Markdown
Contributor

@seng1e seng1e commented Apr 2, 2026

Summary

Fix a typo in OPTIONS_SCROLL_DEFAULT equality comparison.

What changed

  • compare l.reverse with r.reverse instead of r.smooth

Why it matters

The current Equatable implementation compares the reverse-scroll flag on the left-hand side against the smooth-scroll flag on the right-hand side. That can produce incorrect equality results when scroll option snapshots are compared.

Validation

  • inspected the diff to ensure this PR only changes the mistaken comparison line
  • no behavioral changes outside the equality check

@seng1e seng1e marked this pull request as ready for review April 2, 2026 11:01
@Caldis Caldis merged commit 28b7e13 into Caldis:master Apr 21, 2026
@Caldis
Copy link
Copy Markdown
Owner

Caldis commented Apr 21, 2026

感谢帮助修复这个问题 !

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