Skip to content

Commit

Permalink
Merge pull request #31 from rocicorp/mobile-safari-gar
Browse files Browse the repository at this point in the history
Fix layout bug on mobile safari when cursors are off screen.
  • Loading branch information
aboodman authored Mar 9, 2021
2 parents c54ffab + 6e79eb5 commit 24ec086
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/designer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function Designer({ data }: { data: Data }) {
{...{
ref: nodeRef,
className: "container",
style: { position: "relative", display: "flex", flex: 1 },
style: { position: "relative", display: "flex", flex: 1, overflow: "hidden" },
onMouseMove: (e) => onMouseMove(e.pageX, e.pageY),
onTouchMove: (e) => touchToMouse(e, onMouseMove),
onMouseUp,
Expand Down
1 change: 0 additions & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400&display=swap"
Expand Down

0 comments on commit 24ec086

Please sign in to comment.