cocos-engine
cocos-engine copied to clipboard
If a button is set to use scaling mode and the zoomScale is less than 1.0, clicking on the button's edge may not trigger the touch_end event.
Cocos Creator version
3.8.1
System information
Windows
Issue description
If a button is set to use scaling mode and the zoomScale is less than 1.0, clicking on the button's edge may not trigger the touch_end event. 设置按钮使用缩放模式并且 zoomScale 小于 1.0,之后点击按钮边缘时不触发 touch_end 事件
https://github.com/cocos/cocos-engine/assets/35944775/c9391f05-7837-4274-9992-75ecc09a0c5c
I have solved this problem by modifying the engine code.