smaller widgetPanel spacing for ipad

This commit is contained in:
TrueZhuanjia committed 2025-07-02 00:27:07 +08:00
1 parent 19882a9373
commit 88edc7f263
2 files changed
+13 -11

No files matched your search

+2
View File
@@ -1136,11 +1136,13 @@ import UIKit
private func updateTouchLocation (touch: UITouch) {
self.mousePointerMoved = true
let currentTouchLocation: CGPoint = (touch.location(in: self))
if !firstTouchMoved {
// First move event
self.latestTouchLocation = currentTouchLocation
self.firstTouchMoved = true
}
self.deltaX = currentTouchLocation.x - self.latestTouchLocation.x
self.deltaY = currentTouchLocation.y - self.latestTouchLocation.y
self.offSetX = currentTouchLocation.x - self.touchBeganLocation.x