You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,3 +28,11 @@ While developing the app, you can take a look at the static pages that you'll ev
28
28
29
29
The starting point of the application is the `/client/src/index.js` file. That's where the root component of the application - `Application` - is rendered to the DOM. You can add new components to the `/client/src/components` folder.
30
30
```
31
+
32
+
## Calculation of item positions
33
+
34
+
- If the item is the first to be created in the group, it gets a position of 65535.
35
+
- If the item is inserted at the beginning of the group, the position becomes half of the previously-first item’s position.
36
+
- If the item is inserted at the end of the list, the position becomes the previously-last item’s position plus 65536
37
+
- If the item is inserted between two other items, the position becomes `(itemBefore.position + itemAfter.position) / 2`.
38
+
- Positions are floats with a high precision (10 digits or so)
0 commit comments