You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm following right, rust sends back a struct with just the width and height, and then the window.ts function above should be constructing a PhysicalSize object before passing it to the handler.
Reproduction
Unfortunately I don't have a runnable repro ready to go.. but here's a vue3 composable that demonstrates the problem and a workaround. You see the onResized handler constructs the PhysicalSize object instead of relying on the event payload to be the documented type.
Describe the bug
Similar to #2599 .. The onResized payload is written
PhysicalSize
, but only the width and height properties are being received by my handler.If I'm following right, rust sends back a struct with just the width and height, and then the window.ts function above should be constructing a PhysicalSize object before passing it to the handler.
Reproduction
Unfortunately I don't have a runnable repro ready to go.. but here's a vue3 composable that demonstrates the problem and a workaround. You see the
onResized
handler constructs the PhysicalSize object instead of relying on the event payload to be the documented type.Expected behavior
No response
Platform and versions
The text was updated successfully, but these errors were encountered: