Skip to content

[BUG] - Issue with icon background hover color #110

@onesounds

Description

@onesounds

Image

Describe the bug
The issue occurs when hovering over icons in Grid View. While the background color changes correctly for the initial icons, the hover effect seems to stop applying to icons after a certain point in the list.

To Reproduce

  1. Add at least 4 icons to the frame.

  2. Hover over the icons in sequence from the first to the fourth, and verify that the background color changes and reverts correctly.

Suspected Cause
It seems like there might be an issue with the conditional logic in the FileItem_MouseEnter and FileItem_MouseLeave functions.

When I tried removing the complex conditions and simply set the code to toggle the color on 'Enter' and off on 'Leave', the issue was resolved. It appears that the current logic might be causing unexpected behavior in certain scenarios.

Expected behavior
The appropriate color should be displayed on hover, and the background should revert to transparent when the mouse leaves.

Desktop (please complete the following information):

  • OS Version [e.g. 22H2]
  • OS Build [e.g. 22000.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions