Skip to content

bug: Mouse does not change to appropriate Hand cursor type while hovering - Flet 0.82.2 #6311

@Amarius1

Description

@Amarius1

Duplicate Check

Describe the bug

I am using a fresh environment with just Flet packages installed and was testing the newest Flet 0.82.2.

I noticed that any controls which used to change the mouse on hover to the expected "hand" cursor type no longer do so, even if just a single button is added to the page.

Not sure if this is a bug or an intended change but I have not experienced the same issue with 0.28.3.

Code sample

Code
async def main(page: ft.Page):
    page.title = "RigFire"  
    page.vertical_alignment = ft.MainAxisAlignment.START
    page.theme_mode = ft.ThemeMode.LIGHT
    page.padding = 0
    page.window.icon = f"../Media/app_icon.ico"
    page.bgcolor = ft.Colors.ON_INVERSE_SURFACE
    page.window.bgcolor = ft.Colors.TRANSPARENT
    page.window.title_bar_hidden = False
    page.window.maximized = True
    page.platform = ft.PagePlatform.WINDOWS
    # Setup logic
    #await masterProcess(page)
    
    # Initialize Manager
    #manager = ViewManager(page)
    
    # Kickstart the UI
    #await manager.route_change(None)
    page.add(ft.Button('Test'))

if __name__ == "__main__":
    ft.run(main)

To reproduce

Add any button-like component and hover over it.

Expected behavior

Mouse cursor should turn from Pointer to Hand.

Screenshots / Videos

Captures Image

Operating System

Windows

Operating system details

Windows 11

Flet version

0.82.2

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

No response

Additional details

Last worked as expected (to my knowledge) on Flet 0.28.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions