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

[Bug]: Object at the bottom "bleed" through the edge of top object #10225

Open
7 tasks done
LikitSaeLee opened this issue Oct 17, 2024 · 2 comments
Open
7 tasks done

[Bug]: Object at the bottom "bleed" through the edge of top object #10225

LikitSaeLee opened this issue Oct 17, 2024 · 2 comments

Comments

@LikitSaeLee
Copy link

LikitSaeLee commented Oct 17, 2024

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have read and followed the Issue Tracker Guide
  • I have searched and referenced existing issues and discussions
  • I am filing a BUG report.
  • I have managed to reproduce the bug after upgrading to the latest version
  • I have created an accurate and minimal reproduction

Version

6.0.2

In What environments are you experiencing the problem?

Firefox, Chrome

Node Version (if applicable)

None

Link To Reproduction

https://stackblitz.com/edit/js-zyyzqo?file=index.js (updated with red rect behind a yellow rect, added zoom and unzoom button)

Steps To Reproduce

Hi, thanks for the wonderful project! I met a weird issue with rendering objects on top of each other, would love to know why it happens and if there is any workaround for this.

  1. Create two Rects of the same size, with white rect on top of the black rect.
  2. Play with various level of zoom.
  3. The color of the black rect behind will "bleed" through the top object and visible on the canvas.

image

The issue can also happens to image, where the image will "bleed" through edges of the rect. Although both of them are of the same size.

https://stackblitz.com/edit/js-7zadzc?file=index.html,index.js

image

  1. At the video below, notice the edge of the rect object. The bleeding seems to different on various zoom level.
    Screencast from 17-10-24 21:22:57.webm

Expected Behavior

The rect on top should fully cover the rect behind.

Actual Behavior

The rect behind "bleed" through the edge of the rect on top.

Error Message & Stack Trace

No response

@LikitSaeLee LikitSaeLee changed the title [Bug]: Object at the bottom "bleed" through the top object [Bug]: Object at the bottom "bleed" through the edge of top object Oct 17, 2024
@LikitSaeLee
Copy link
Author

not sure about this but it seems like its an issue with html canvas itself https://stackblitz.com/edit/vitejs-vite-9acvhj?file=src%2Fmain.ts

@av-shekhawat
Copy link

Hi @LikitSaeLee, have you managed to find any workarounds for this issue?

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

2 participants