fix: stop flooring scroll positions (#2883)
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import { ExcalidrawTextElement } from "../element/types";
|
||||
import { FlooredNumber, Zoom } from "../types";
|
||||
import { Zoom } from "../types";
|
||||
|
||||
export type SceneState = {
|
||||
scrollX: FlooredNumber;
|
||||
scrollY: FlooredNumber;
|
||||
scrollX: number;
|
||||
scrollY: number;
|
||||
// null indicates transparent bg
|
||||
viewBackgroundColor: string | null;
|
||||
zoom: Zoom;
|
||||
@ -15,8 +15,8 @@ export type SceneState = {
|
||||
};
|
||||
|
||||
export type SceneScroll = {
|
||||
scrollX: FlooredNumber;
|
||||
scrollY: FlooredNumber;
|
||||
scrollX: number;
|
||||
scrollY: number;
|
||||
};
|
||||
|
||||
export interface Scene {
|
||||
|
Reference in New Issue
Block a user