diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index cca8b716..59f8f46f 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -1138,8 +1138,8 @@ import UIKit let offsetX = currentLocation.x - latestTouchLocation.x; let offsetY = currentLocation.y - latestTouchLocation.y; - let outOfBoundsX = center.x+offsetX > (self.superview?.bounds.width)! || center.x+offsetX < 0 - let outOfBoundsY = center.y+offsetY > (self.superview?.bounds.height)! || center.y+offsetY < 0 + let outOfBoundsX = center.x+offsetX >= (self.superview?.bounds.width)! || center.x+offsetX < 0 + let outOfBoundsY = center.y+offsetY >= (self.superview?.bounds.height)! || center.y+offsetY < 0 center = CGPoint(x: outOfBoundsX ? center.x : center.x+offsetX, y: outOfBoundsY ? center.y : center.y+offsetY) diff --git a/VoidLink/Localization/Localizable.xcstrings b/VoidLink/Localization/Localizable.xcstrings index d5129bae..fee9f464 100644 --- a/VoidLink/Localization/Localizable.xcstrings +++ b/VoidLink/Localization/Localizable.xcstrings @@ -295,13 +295,13 @@ "zh-Hant" : { "stringUnit" : { "state" : "translated", - "value" : "[ 開啟螢幕小工具 ]" + "value" : "[ 調整螢幕小工具版面配置 ]" } }, "zh-HK" : { "stringUnit" : { "state" : "translated", - "value" : "[ 開啟螢幕小工具 ]" + "value" : "[ 調整螢幕小工具版面配置 ]" } } }