mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-08-01 18:54:36 -05:00
calculateNewPositionForTask only checked for lowestPosition == 0 before triggering a full position recalculation. Extremely small position values (e.g. 3.16e-285) passed this check, causing new tasks to get meaningless positions via the index * 2^16 fallback, breaking sort order. Use the same < MinPositionSpacing threshold that createPositionsForTasksInView and the position update handler already use. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>