Skip to content

Commit

Permalink
disable user-select on <body> when dragging notes
Browse files Browse the repository at this point in the history
  • Loading branch information
apankrat committed Aug 4, 2021
1 parent 4ba5bb4 commit f40c242
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nullboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@
clear: both;
}

/***/
body.dragging {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

/***/
.board {
min-width: calc( var(--lw) * 1px );
Expand All @@ -243,6 +253,11 @@
margin: 0 auto;
padding: 20px;

-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

Expand Down

0 comments on commit f40c242

Please sign in to comment.