Commit 9f33ea66 authored by Ategon's avatar Ategon
Browse files

Prevent movile from turning cursors on

parent 5c9d2668
Loading
Loading
Loading
Loading
Loading
+23 −17
Original line number Diff line number Diff line
import { usePanel } from "@/contexts/PanelContext";
import { useAppContext } from "../../contexts/AppContext";
import { useDialog } from "../../contexts/DialogContext";
import { useIsMobile } from "../../hooks/useIsMobile";
import { Button } from "../core/Button";
import { Switch } from "../core/Switch";

@@ -8,6 +9,7 @@ export const MiscSettings = () => {
  const { settings } = useAppContext();
  const Dialog = useDialog();
  const Panel = usePanel();
  const isMobile = useIsMobile();

  return (
    <div className="flex flex-col gap-4 p-2">
@@ -24,6 +26,8 @@ export const MiscSettings = () => {
        >
          Enable Camera Flash
        </Switch>
        {!isMobile && (
          <>
            <Switch
              isSelected={settings.get["presence.cursors"]}
              onValueChange={(value) => {
@@ -42,6 +46,8 @@ export const MiscSettings = () => {
                Enable Reactions
              </Switch>
            )}
          </>
        )}
        <Switch
          isSelected={settings.get["keybindings.enabled"]}
          onValueChange={(value) => {