From 8c7bf18b65f84dccf3a27381cd6a8ce3575f5377 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Tue, 2 Dec 2025 22:09:00 +0800 Subject: [PATCH] tweak touchUp delay --- VoidLink/Input/PencilHandler.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VoidLink/Input/PencilHandler.swift b/VoidLink/Input/PencilHandler.swift index bf36c416..9795fc38 100644 --- a/VoidLink/Input/PencilHandler.swift +++ b/VoidLink/Input/PencilHandler.swift @@ -151,7 +151,8 @@ import UIKit eventType = UInt8(LI_TOUCH_EVENT_MOVE) } - delay = eventType == UInt8(LI_TOUCH_EVENT_UP) ? 0.0086 : 0 + delay = manualTick ? 0.0086 : 0.017 + delay = eventType == UInt8(LI_TOUCH_EVENT_UP) ? delay : 0 DispatchQueue.global().asyncAfter(deadline: dispatchMoment + tickMoment + delay) { LiSendPenEvent(eventType, UInt8(LI_TOOL_TYPE_PEN), 0, Float(location.x/videoSize.width), Float(location.y/videoSize.height), Float(touch.force/touch.maximumPossibleForce)/sin(Float(altitude)), 0, 0, self.getRotation(fromAzimuthAngle: Float(azimuth)), self.getTilt(fromAltitudeAngle: Float(altitude)))