cocos-engine icon indicating copy to clipboard operation
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.

Open zhefengzhang opened this issue 1 year ago • 0 comments

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.

image

image

Relevant error log output

Steps to reproduce

Minimal reproduction project

20240111002.zip

zhefengzhang avatar Jan 17 '24 03:01 zhefengzhang