DioxusLabs / DioxusLabs/dioxus

Browser occasionally changes types of events and their fields depending on where they come from

Open
#2,385 9 comments 0 reactions 0 assignees View on GitHub
bug desktop windows
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

The `onpointermove` event appears broken on Windows. When a component that binds to this event is present, the moment the user moves the cursor, the main thread panics with an InvalidType error.

**Steps To Reproduce**

Steps to reproduce the behavior:

- Create a component that binds to the `onpointermove` event.
- On Windows, run `dx serve --platform desktop`
- Access the component with the bound event
- Try moving the mouse
- Observe that the application crashes

**Expected behavior**

Binding to the `onpointermove` event should return an `Event` event to the event handler.

**Screenshots**

N/A

**Environment:**
- Dioxus version: 0.5.1
- Rust version: 1.78.0
- OS info: Windows 11 (22631.3527)
- App platform: desktop

**Questionnaire**

- [ ] I'm interested in fixing this myself but don't know where to start
- [ ] I would like to fix and I have a solution
- [x] I don't have time to fix this right now, but maybe later

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the `onpointermove` binding with `dx serve --platform desktop` on Windows and inspect the event conversion path that produces the `InvalidType` panic. Done means moving the cursor no longer crashes and the handler receives an `Event` as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.