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
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:
+1
-1
@@ -13,7 +13,7 @@ import kotlin.math.roundToInt
|
|||||||
* (height 0) moves nothing.
|
* (height 0) moves nothing.
|
||||||
*/
|
*/
|
||||||
internal fun reorderDragDelta(offsetPx: Float, rowHeightPx: Int): Int =
|
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
|
* The index a row dragged from [index] lands on, in a list of [count] rows
|
||||||
|
|||||||
Reference in New Issue
Block a user