minor fixes

This commit is contained in:
True Zhuanjia committed 2026-02-27 00:08:28 +08:00
1 parent 0728e999eb
commit d0b45a019f
1 file changed
+3 -3
+3 -3
View File
@@ -222,11 +222,11 @@ import UIKit
eventType = UInt8(manualHoverFlag ? LI_TOUCH_EVENT_HOVER : LI_TOUCH_EVENT_MOVE) eventType = UInt8(manualHoverFlag ? LI_TOUCH_EVENT_HOVER : LI_TOUCH_EVENT_MOVE)
targetForce = moveEventIndex < initialMoveEventIndexLimit ? touchBeganForce : targetForce targetForce = moveEventIndex < initialMoveEventIndexLimit ? touchBeganForce : targetForce
case .ended: case .ended:
eventType = UInt8(LI_TOUCH_EVENT_UP) eventType = UInt8(manualHoverFlag ? LI_TOUCH_EVENT_HOVER_LEAVE : LI_TOUCH_EVENT_UP)
case .cancelled: case .cancelled:
eventType = UInt8(LI_TOUCH_EVENT_UP) eventType = UInt8(manualHoverFlag ? LI_TOUCH_EVENT_HOVER_LEAVE : LI_TOUCH_EVENT_UP)
default: default:
eventType = UInt8(LI_TOUCH_EVENT_MOVE) eventType = UInt8(LI_TOUCH_EVENT_HOVER)
} }
delay = manualTick ? 0.0086 : 0.0086 delay = manualTick ? 0.0086 : 0.0086