dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Drag + drop events downcast to MouseEvent, when they should go to web_sys::DragEvent

Open rogusdev opened this issue 1 year ago • 0 comments

Problem

Drag events in dioxus currently downcast to web_sys::MouseEvent, when they should go to web_sys::DragEvent, per https://docs.rs/dioxus-web/0.6.0-alpha.3/dioxus_web/trait.WebEventExt.html#associatedtype.WebEvent-4 according to @ealmloff

See all the drag* + drop events in https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/drag_event -- they all take DragEvent

Steps To Reproduce

See my repro code and explanation in discord thread: https://discord.com/channels/899851952891002890/1300590718766813344/1300591028499255306

Environment:

  • Dioxus version: main
  • App platform: web

Questionnaire

I'm interested in fixing this myself but don't know where to start

rogusdev avatar Oct 28 '24 23:10 rogusdev