Update landing page

This commit is contained in:
1ilit
2024-08-07 19:46:55 +03:00
parent 9ed89df9e3
commit 7ad1059990
7 changed files with 351 additions and 184 deletions

View File

@@ -28,7 +28,7 @@ function Table({ table, grab }) {
// Required for onPointerLeave to trigger when a touch pointer leaves
// https://stackoverflow.com/a/70976017/1137077
e.target.releasePointerCapture(e.pointerId);
if (!e.isPrimary) return;
grab(e);
@@ -197,7 +197,7 @@ export default function SimpleCanvas({ diagram, zoom }) {
return (
<svg
className="w-full h-full cursor-grab"
className="w-full h-full cursor-grab rounded-3xl"
onPointerUp={(e) => e.isPrimary && releaseTable()}
onPointerMove={(e) => e.isPrimary && moveTable(e)}
onPointerLeave={(e) => e.isPrimary && releaseTable()}