File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ export const getScalePosition = async ({
3131 const nextScalePosition = entries [ Math . max ( position , 0 ) ] ?. position ;
3232
3333 // Insert to beginning of list if there is no preceding entry
34- // Note: use Math.random() rather than mean to reduce risk of collisions in concurrent edits
34+ // Note: use Math.random() rather to reduce risk of collisions in concurrent edits
3535 if ( previousScalePosition === undefined )
3636 return nextScalePosition === undefined
3737 ? Math . random ( )
3838 : nextScalePosition - Math . random ( ) ;
3939
4040 // Insert to end of list if there is no following entry, or somewhere between adjacent entries
4141 return nextScalePosition === undefined
42- ? previousScalePosition + 1 * Math . random ( )
42+ ? previousScalePosition + Math . random ( )
4343 : previousScalePosition + ( nextScalePosition - previousScalePosition ) * Math . random ( ) ;
4444} ;
You can’t perform that action at this time.
0 commit comments