Commit Graph

13 Commits

Author SHA1 Message Date
1ilit
faf4b157ff Fix moving tables not working in simple canvas 2024-07-22 09:23:24 +03:00
Felix Zedén Yverås
3659ba9143 fix: release pointer capture when using onPointerLeave events
Certain input sources (such as touch) are "captured" when they
press an element. This means the pointer is always considered
"inside" the element by the browser, even when they visually are
not. This caused some issues on mobile browsers where touch and
stylus events could not connect table columns with each other.

Just to be safe, I've added the required `releasePointerCapture`
call everywhere `onPointerEnter` or `onPointerLeave` is used.
2024-07-17 22:22:52 +02:00
Felix Zedén Yverås
cdecf7c633 feat: add basic touchscreen support
This is basically a migration from mouse events to
[pointer events](
  https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events
).

The `PointerEvent` interface inherits all of the `MouseEvent`
properties, meaning that existing code can essentially be left
as-is. The only major change is making sure we only respond to the
"primary" pointer.

Known issues include:
* stylus hover is not detected
* touchscreens do not have a concept of hover, making it difficult
  to e.g. resize areas
* no touch gesture support, e.g. "pinch-to-zoom"
2024-07-14 15:36:54 +02:00
1ilit
2ac0f047a1 Merge commit 'refs/pull/35/head' of https://github.com/drawdb-io/drawdb 2024-04-14 09:59:25 +03:00
1ilit
9faf99d9d7 Remove magic numbers in table height calculations 2024-04-12 04:24:19 +03:00
ClaPalo
99cee1c104 Reintroduced opacity using RGBA 2024-04-11 20:08:05 -05:00
ClaPalo
f6e6a50e9d Fixed Landing page 2024-04-11 19:20:29 -05:00
1ilit
10e0e279cc Remove coords from relationship objects 2024-04-05 03:05:09 +03:00
1ilit
3ec93f42c6 Make variable naming consistent 2024-03-15 16:37:22 +02:00
1ilit
787b7b9817 Declutter utils 2024-03-11 02:45:44 +02:00
1ilit
dd4ec59e56 Fix table and relationhsip render order in simple canvas 2024-03-10 01:24:26 +02:00
1ilit
58bafcfcaf Add hero 2024-01-18 04:24:38 +02:00
1ilit
9f981b62ec Remove login and signup 2024-01-14 05:35:03 +02:00