stdweb icon indicating copy to clipboard operation
stdweb copied to clipboard

Pointer event screen position methods panic on Chrome

Open alamminsalo opened this issue 5 years ago • 1 comments

When handling pointer events (onpointermove,onpointerup, onpointerleave etc.), screen_x and screen_y methods panic with message:

Panic error message: called Result::unwrap()on anErrvalue: NumericConversionError(NotAnInteger)

Reproducable on Chrome. Firefox works.

alamminsalo avatar Apr 21 '19 05:04 alamminsalo

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?

Pauan avatar Apr 21 '19 10:04 Pauan