Petterpx/FloatingX

FxLocationHelper 中有个错误

appdev opened this issue · 1 comments

https://github.com/Petterpx/FloatingX/blob/main/floatingx/src/main/java/com/petterp/floatingx/view/FxLocationHelper.kt#L70

这一行,

    fun getLocation(viewConfig: FxViewConfigHelper): Pair<Float, Float> {
        val newX = getX(viewConfig.minWBoundary, viewConfig.minWBoundary)
        val newY = getY(viewConfig.minHBoundary, viewConfig.maxHBoundary)
        this.screenChanged = false
        return newX to newY
    }
 val newX = getX(viewConfig.minWBoundary, viewConfig.minWBoundary)

这里应该是写错了。应该是

val newX = getX(viewConfig.minWBoundary, viewConfig.maxWBoundary)

更新到 1.4.2 即可修复~