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