When using a mouse on a phone, cannot open or resize the eruda window. (very edge case I know...)
To fix it, I just added code to always handle both touch and mouse events, and make sure to call preventDefault on the touch event so the mousedown doesn't get fired again.
Attached video has 2 parts:
reproduce the issue in the homepage
fix result using the test page, both open, close, move entry, and resize all work.
When using a mouse on a phone, cannot open or resize the eruda window. (very edge case I know...)
To fix it, I just added code to always handle both touch and mouse events, and make sure to call
preventDefault
on the touch event so themousedown
doesn't get fired again.Attached video has 2 parts:
https://github.com/liriliri/eruda/assets/3515649/de453903-a85d-4367-b0e5-d871b67a9c9e