Skip to content

Conversation

@Zpiboo
Copy link
Member

@Zpiboo Zpiboo commented Sep 2, 2025

  • Fix the scissor in 1.21+
  • Make it impossible to hover elements from outside their scissor box

(GL's scissor boxes don't work in newer versions :'( )
- Move Renderer2D's scissorStack to version-specific code for older versions, as newer ones already have it built-in along with a scissorContains method.
- Take the current scissor into account in the Component::contains method.
@Zpiboo
Copy link
Member Author

Zpiboo commented Sep 2, 2025

Would it really be worth it to add it to fabric-1.21.8 if this version is going to be removed anyway?

@Exterminate5573
Copy link
Member

im going to merge this pr then tonight ill do some version refactoring to clean up the codebase

@Exterminate5573 Exterminate5573 merged commit 4572415 into MPKMod:master Sep 3, 2025
1 check failed
@Zpiboo Zpiboo deleted the fix/scissor-box branch September 3, 2025 07:57
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