const
This commit is contained in:
parent
eef9662195
commit
22c57c8f4a
@ -51,7 +51,7 @@ import {
|
||||
GRID_SIZE,
|
||||
LINE_CONFIRM_THRESHOLD,
|
||||
MIME_TYPES,
|
||||
NETWORK_SPEED_THRESHOLD,
|
||||
NETWORK_SPEED_TIMEOUT_MS,
|
||||
POINTER_BUTTON,
|
||||
TAP_TWICE_TIMEOUT,
|
||||
TEXT_TO_CENTER_SNAP_THRESHOLD,
|
||||
@ -1036,7 +1036,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
this.setState({ networkSpeed });
|
||||
this.netStatsIntervalId = setTimeout(
|
||||
this.calculateNetStats,
|
||||
NETWORK_SPEED_THRESHOLD,
|
||||
NETWORK_SPEED_TIMEOUT_MS,
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -8,7 +8,7 @@ export const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5;
|
||||
export const ELEMENT_TRANSLATE_AMOUNT = 1;
|
||||
export const TEXT_TO_CENTER_SNAP_THRESHOLD = 30;
|
||||
export const SHIFT_LOCKING_ANGLE = Math.PI / 12;
|
||||
export const NETWORK_SPEED_THRESHOLD = 5000;
|
||||
export const NETWORK_SPEED_TIMEOUT_MS = 5000;
|
||||
|
||||
export const CURSOR_TYPE = {
|
||||
TEXT: "text",
|
||||
|
Loading…
x
Reference in New Issue
Block a user