mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 23:40:45 +02:00
Hide scrollbars on mobile
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user