bevyengine / bevyengine/bevy

The behavior of `window.cursor_position()` is not same cross platforms when enable cursor hittest

Open
#7,975 1 comment 0 reactions 0 assignees View on GitHub
A-Windowing C-Bug O-Windows
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.10

## \[Optional\] Relevant system information

OS: Win10 & MacOS

## What you did

When enable cursor hittest in `window_fallthrough` example,
- On Win10, `window.cursor_position()` will always return `None`
- On MacOS, `window.cursor_position()` will return `Some` if inside window, or `None` if outside window

## What went wrong

The behavior is not same cross platforms.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.