Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ztext: Selections sometimes contain duplicate text for each layer #2

Open
Fire- opened this issue Aug 27, 2020 · 3 comments
Open

ztext: Selections sometimes contain duplicate text for each layer #2

Fire- opened this issue Aug 27, 2020 · 3 comments

Comments

@Fire-
Copy link

Fire- commented Aug 27, 2020

This is a really cool project!

It looks like sometimes attempts to select and copy a string duplicate the string in the selection for each layer present. For example:

image

Similarly, copying the "80px" in a different example produced the following clipboard contents:

80px
80px
80px
80px
80px
80px
80px
80px
80px
80px

I believe this is mostly just an artifact of how layering is accomplished, but that the results were inconsistent is what I find most curious - further attempts to replicate this seem to result in only one copy in the clipboard ( though an extra line feed seems to be tagging along as well )

@LarryBattle
Copy link

Could you provide sample code or a link to a codepen?

@JamDon2
Copy link

JamDon2 commented Sep 23, 2020

The one on the example page does this on mobile (if I hold the text to select, and if I change the selection, it disappears), and CTRL + A does the same

@bennettfeely
Copy link
Owner

I'm aware of this issue. Not sure what else I can do about it. user-select:none and especially pointer-events: none are applied to the duplicate layers yet Chrome still selects that text. Still open to suggestions though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants