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

fix(): When the perPixelTargetFind is set to true, the selected transparent graphic cannot be moved #10445

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhe-he
Copy link
Contributor

@zhe-he zhe-he commented Feb 20, 2025

When a graphic is in the selected state, check its current position. Whether it is transparent or not should no longer be considered. I disabled this logic to ensure that transparent graphics can be operated normally

#10444

Copy link

codesandbox bot commented Feb 20, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@@ -820,7 +820,8 @@ export class SelectableCanvas<EventSpec extends CanvasEvents = CanvasEvents>
) {
if (
(this.perPixelTargetFind || obj.perPixelTargetFind) &&
!(obj as unknown as IText).isEditing
!(obj as unknown as IText).isEditing &&
this._activeObject != obj
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to look at how this feature has been introduced/built before thinking is a bug and not a change of feature. I'll dig

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

Successfully merging this pull request may close these issues.

2 participants