Skip to content
Snippets Groups Projects
Commit 8db73917 authored by johnshaughnessy's avatar johnshaughnessy
Browse files

Fix user-select in firefox, safari (webkit)

parent 1d12226f
No related branches found
No related tags found
No related merge requests found
@import 'shared';
:local(.unselectable) {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
:local(.container) {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
user-select: none;
&:local(.top) {
top: 10px;
......
......@@ -5,7 +5,7 @@ import cx from "classnames";
import styles from "../assets/stylesheets/2d-hud.scss";
const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onToggleSpaceBubble }) => (
<div className={cx(styles.container, styles.top)}>
<div className={cx(styles.container, styles.top, styles.unselectable)}>
<div className={cx("ui-interactive", styles.panel, styles.left)}>
<div
className={cx(styles.iconButton, styles.mute, { [styles.active]: muted })}
......@@ -38,7 +38,7 @@ TopHUD.propTypes = {
};
const BottomHUD = ({ onCreateObject, showPhotoPicker, onMediaPicked }) => (
<div className={cx(styles.container, styles.column, styles.bottom)}>
<div className={cx(styles.container, styles.column, styles.bottom, styles.unselectable)}>
{showPhotoPicker ? (
<div className={cx("ui-interactive", styles.panel, styles.up)}>
<input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment