test: DELIBERATE BREAK, detekt-clean drag rounding break (#8301)
release / integration (push) Canceled after 0s
release / web (push) Canceled after 0s
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 12s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:40:50 -05:00
co-authored by Claude Opus 5.5
parent 74076be610
commit a81dee30fd
@@ -13,7 +13,7 @@ import kotlin.math.roundToInt
* (height 0) moves nothing.
*/
internal fun reorderDragDelta(offsetPx: Float, rowHeightPx: Int): Int =
if (rowHeightPx > 0) (offsetPx / rowHeightPx - 0.5f).roundToInt() // DELIBERATE BREAK else 0
if (rowHeightPx > 0) (offsetPx / (rowHeightPx + 1)).roundToInt() // DELIBERATE BREAK else 0
/**
* The index a row dragged from [index] lands on, in a list of [count] rows