stdweb
stdweb copied to clipboard
Pointer event screen position methods panic on Chrome
When handling pointer events (onpointermove,onpointerup, onpointerleave etc.), screen_x and screen_y methods panic with message:
Panic error message: called
Result::unwrap()on an
Errvalue: NumericConversionError(NotAnInteger)
Reproducable on Chrome. Firefox works.
This is probably because screenX
and the other position properties were changed from long
to double
.
This change is experimental (it hasn't become official yet), but Chrome implemented it anyways.
Do you have a reduced test case demonstrating the problem?