fix: stop preventing canvas pointerdown/tapend events (#3207)

This commit is contained in:
David Luzar 2021-03-16 18:04:53 +01:00 committed by GitHub
parent edc62c550a
commit e90e56452f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 26 deletions

View file

@ -17,6 +17,13 @@
left: 0;
right: 0;
// serves 2 purposes:
// 1. prevent selecting text outside the component when double-clicking or
// dragging inside it (e.g. on canvas)
// 2. prevent selecting UI, both from the inside, and from outside the
// component (e.g. if you select text in a sidebar)
user-select: none;
a {
font-weight: 500;
text-decoration: none;
@ -29,7 +36,6 @@
canvas {
touch-action: none;
user-select: none;
// following props improve blurriness at certain devicePixelRatios.
// AFAIK it doesn't affect export (in fact, export seems sharp either way).