diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-03-01 21:55:07 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-03-01 22:17:04 +0000 |
| commit | 5a74693b329eadb69153b150754eb099a0c87e9a (patch) | |
| tree | 75d0d2cee591edbd06110ec543c1763dba05839f /loopgen.c | |
| parent | 5a491c5ad333ef34c1e7713f920f51cbb205af60 (diff) | |
| download | puzzles-5a74693b329eadb69153b150754eb099a0c87e9a.zip puzzles-5a74693b329eadb69153b150754eb099a0c87e9a.tar.gz puzzles-5a74693b329eadb69153b150754eb099a0c87e9a.tar.bz2 puzzles-5a74693b329eadb69153b150754eb099a0c87e9a.tar.xz | |
js: Use the Pointer Events API, but only to capture the pointer
Element.setPointerCapture() captures both pointer and mouse events, so
we can use our existing mouse handlers and just have a minimal
pointerdown handler that calls setPointerCapture(). This saves (or at
least postpones) all the tedious rewriting referred to in ecd868ac.
This means that now drags beyond the puzzle area work in WebKit-based
browsers, and we don't get deprecation warnings in current Gecko-based
ones. Older Gecko-based browsers continue to use Element.setCapture()
and hence still work correctly.
Diffstat (limited to 'loopgen.c')
0 files changed, 0 insertions, 0 deletions