mateuszmigas / painting-droid

AI-powered cross-platform painting app inspired by the legendary MS Paint.
https://www.paintingdroid.com
GNU General Public License v3.0
93 stars 2 forks source link

Find a way to synchronize canvas overlay with layers #50

Closed mateuszmigas closed 1 month ago

mateuszmigas commented 2 months ago

Describe the bug The canvas overlay is not synchronized with the layers. Sometimes, the browser might render one before the other, resulting in "blinking" artifacts when selecting an area.

To Reproduce Steps to reproduce the behavior:

  1. Draw something
  2. Select "Rectangle Select" tool
  3. Select some area
  4. Press Escape, repeat until you notice blinking

Expected behavior There should be no blinking, obviously.

Screenshots N/A

Platform (please complete the following information):

Additional context N/A

mateuszmigas commented 1 month ago

I added a fade-out animation to shapes and images to address this problem.