Hide scrollbars on mobile

This commit is contained in:
Arun 2021-02-14 19:28:33 +05:30
parent 830fb64a25
commit 4d75a2c795

View file

@ -49,6 +49,7 @@ import {
} from "../element/transformHandles";
import { viewportCoordsToSceneCoords, supportsEmoji } from "../utils";
import { UserIdleState } from "../excalidraw-app/collab/types";
import { isMobile } from "../is-mobile";
const hasEmojiSupport = supportsEmoji();
@ -186,7 +187,7 @@ export const renderScene = (
sceneState: SceneState,
// extra options, currently passed by export helper
{
renderScrollbars = true,
renderScrollbars = !isMobile(),
renderSelection = true,
// Whether to employ render optimizations to improve performance.
// Should not be turned on for export operations and similar, because it