test: DELIBERATE BREAK, keep the else on the drag break's line (#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 7s
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 7s
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.
|
||||
*/
|
||||
internal fun reorderDragDelta(offsetPx: Float, rowHeightPx: Int): Int =
|
||||
if (rowHeightPx > 0) (offsetPx / (rowHeightPx + 1)).roundToInt() // DELIBERATE BREAK else 0
|
||||
if (rowHeightPx > 0) (offsetPx / (rowHeightPx + 1)).roundToInt() else 0 // DELIBERATE BREAK
|
||||
|
||||
/**
|
||||
* The index a row dragged from [index] lands on, in a list of [count] rows
|
||||
|
||||
Reference in New Issue
Block a user