Skip to content

activateSystemCursor should set the cursor on all views #140226

@mdebbar

Description

@mdebbar

At least on the web, the cursor can be set at whatever scope we choose (e.g. entire window, flutter view element, etc). So in order for us to correctly scope the cursor, we would need the viewId information within the activateSystemCursor message.

At the moment, we are always setting the cursor property on the body element. It would be better to set the cursor property on all the <flutter-view> elements instead, for a few reasons:

  1. Avoid polluting the cursor of other parts of the page that don't belong to Flutter.
  2. Fix the mouse cursor when the Flutter View is moved to a PiP window (see comments below).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: mouseIssues related to using a mouse or mouse supporta: multi windowIssues related to multi window supportframeworkflutter/packages/flutter repository. See also f: labels.good first issueRelatively approachable for first-time contributorsteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions