The first public release of Fabled Minstrel #158
+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