cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

richtext triggers two click events

Open OnlyKoei opened this issue 2 years ago • 1 comments

Cocos Creator version

3.5.1

System information

chrome

Issue description

When the text is a line break, the overlapping part of the text area will trigger two click events; In the video you can see that the log prints twice after clicking in some areas

https://user-images.githubusercontent.com/40415168/172595151-4c174b9b-84dd-4322-aef5-1037cde9958c.mp4

Relevant error log output

No response

Steps to reproduce

demo: NewProject_3.zip

Minimal reproduction project

No response

OnlyKoei avatar Jun 08 '22 10:06 OnlyKoei

there is no spare time to debug this issue because of the workload of protobiochemistry. I decide put it into version 3.6.1. Hope to understand.

Zhmz avatar Jul 23 '22 02:07 Zhmz

image image

These two part label segment are all 50.4 height(1.26*lineHeight). it is designed to avoid border truncation. It is hard to remove the hack modification. It will be resolve when richtext is restructured.

Zhmz avatar Nov 10 '22 07:11 Zhmz