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
Return value is i32, but it needs to be Option<i32>.
Additional Context
tiltX, tiltY, azimuthAngle, and altitudeAngle are only reported if that is the format that is reported by the pointing device, and whether or not they are supported is necessary information because otherwise the application does not know which one to use. If they are unsupported, they evaluate to undefined instead of a number. Throwing that information away and returning a dummy value or throwing a panic makes it impossible to use them correctly.
The text was updated successfully, but these errors were encountered:
For hardware and platforms that do not report tilt or angle, the value MUST be π/2.
...But it IS reporting tilt/angle, just in tiltX and tiltY instead of azimuthAngle/altitudeAngle. And Firefox isn't converting from tiltX/tiltY to azimuth/altitude.
Describe the Bug
e.g.
wasm-bindgen/crates/web-sys/src/features/gen_PointerEvent.rs
Line 56 in c35cc93
Return value is
i32
, but it needs to beOption<i32>
.Additional Context
tiltX, tiltY, azimuthAngle, and altitudeAngle are only reported if that is the format that is reported by the pointing device, and whether or not they are supported is necessary information because otherwise the application does not know which one to use. If they are unsupported, they evaluate to
undefined
instead of a number. Throwing that information away and returning a dummy value or throwing a panic makes it impossible to use them correctly.The text was updated successfully, but these errors were encountered: