mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix auto-reconnection & slider value sync
This commit is contained in:
parent
f6061f5ec6
commit
9f8c87ae8c
4 changed files with 13 additions and 33 deletions
|
@ -865,6 +865,8 @@ const ExcalidrawWrapper = () => {
|
|||
currentVersion.current = value;
|
||||
}, 0);
|
||||
|
||||
const latestVersion = acknowledgedIncrements.length - 1;
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{ height: "100%" }}
|
||||
|
@ -882,8 +884,12 @@ const ExcalidrawWrapper = () => {
|
|||
}}
|
||||
step={1}
|
||||
min={0}
|
||||
max={acknowledgedIncrements.length}
|
||||
value={nextVersion === -1 ? acknowledgedIncrements.length : nextVersion}
|
||||
max={latestVersion}
|
||||
value={
|
||||
nextVersion === -1 || nextVersion === latestVersion
|
||||
? latestVersion
|
||||
: nextVersion
|
||||
}
|
||||
onChange={(value) => {
|
||||
// CFDO: should be disabled when offline! (later we could have speculative changes in the versioning log as well)
|
||||
// CFDO: in safari the whole canvas gets selected when dragging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue