Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Change cursor size based on zoom / device pixel ratio #1119

@barrylb

Description

@barrylb

Describe the bug

On Windows 11 running the demo the mouse cursor size is different to the usual size for the rest of the system while inside the Cogent app.

Large cursor when hovering over the title bar:
IMG_8025

Changes to a small size when inside the window:
IMG_8028

How to reproduce

go run cogentcore.org/core/examples/demo@main

This happens the "Scale" setting is set to 200% in Windows Display Settings. When I change the scale to 100% the mouse cursor is the same inside Cogent apps as everywhere else.

Example code

No response

Relevant output

No response

Platform

Windows

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlyconfirmedThis bug has been confirmed

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions