mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Hide scrollbars on mobile
This commit is contained in:
parent
830fb64a25
commit
4d75a2c795
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue