|
@@ -31,9 +31,11 @@ function initDefaultPosition() {
|
|
|
const windowWidth = sys.windowWidth || 375
|
|
const windowWidth = sys.windowWidth || 375
|
|
|
const windowHeight = sys.windowHeight || 667
|
|
const windowHeight = sys.windowHeight || 667
|
|
|
const sizePx = rpxToPx(80)
|
|
const sizePx = rpxToPx(80)
|
|
|
|
|
+ const rightInsetPx = rpxToPx(24)
|
|
|
|
|
+ const bottomInsetPx = rpxToPx(-86)
|
|
|
const bottomOffsetPx = getBottomLimitPx()
|
|
const bottomOffsetPx = getBottomLimitPx()
|
|
|
- x.value = Math.max(0, windowWidth - sizePx)
|
|
|
|
|
- y.value = Math.max(0, windowHeight - sizePx - bottomOffsetPx)
|
|
|
|
|
|
|
+ x.value = Math.max(0, windowWidth - sizePx - rightInsetPx)
|
|
|
|
|
+ y.value = Math.max(0, windowHeight - sizePx - bottomOffsetPx - bottomInsetPx)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function clampPosition() {
|
|
function clampPosition() {
|