Commit 0ee4ea4
committed
bitmap 3D PFP: pointerdown is show-only, never hide
Some Android browsers / webviews misreport touch as pointerType='mouse'
in PointerEvents. With my previous code that fed the result straight
into setLastInput, a single misclassified canvas tap would hide the
touch UI on a phone with no keyboard -- the exact bug the user hit.
New asymmetric rule:
- pointerdown with pointerType in {'touch', 'pen'}: setLastInput('touch')
- pointerdown with pointerType='mouse' (or anything else): no-op
- keydown (W/A/S/D/Space/arrows): setLastInput('kbm')
Keyboard input is the only signal that can hide the touch UI; pointer
input can only ever bring it back. Result: a phone session that briefly
gets misreported as a mouse tap still keeps the controls visible.1 parent 491e210 commit 0ee4ea4
1 file changed
Lines changed: 6 additions & 3 deletions
File tree
- frontend/src/app/components/_ordpool/digital-artifact-viewer/bitmap-viewer
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
502 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
503 | 506 | | |
504 | 507 | | |
505 | | - | |
| 508 | + | |
506 | 509 | | |
507 | 510 | | |
508 | 511 | | |
| |||
0 commit comments