[#4365] Fix emoji hitboxes in the emoji history list #4366
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR makes a change to the emoji history at the bottom of the IM floater by ensuring they are always left aligned which fixes their hitboxes when mousing over and clicking them. This is done by ensuring their render rectangle has a left value of 0, and the right value gets offset by how much the left got offset by.
Video showing new behaviour-
secondlife-bin_2025-07-14_03-21-49.mp4
Related Issues
Issue: #4365
Additional Notes
The reason the hitboxes don't match where they are rendered is probably worth investigating too, however in my opinion, having them left aligned is more visually ideal regardless. That way an arbitrary gap depending on the floater size doesn't exist before the emoji history, and instead as the window grows in width, it simply adds another emoji if it can fit instead of trying to constantly centre them all.