jvalen / pixel-art-react

Pixel art animation and drawing web app powered by React
https://www.pixelartcss.com/
MIT License
5.43k stars 306 forks source link

Fix - File upload persists out of sync frame count and pixel size from the previous selection #68

Closed shehroze-1122 closed 1 year ago

shehroze-1122 commented 1 year ago

Issue

On upload from the image tab, selecting a new image doesn't reset the frame count and pixel size from the previously selected image where we change the frame count or pixel size.

Steps to Reproduce

  1. Upload an image.
  2. Change the frame count and pixel size.
  3. Upload a different image.
  4. Frame count and pixel size doesn't change whereas frame size is displayed from frame count=1 & pixel size=1

Fix

Reset both frame count & pixel size to 1 when a new image is selected.

jvalen commented 1 year ago

Hi,

Thank you for submitting the PR but I cannot reproduce the issue. I'll be closing the PR for now and reopen if the problem pops up.

Thanks again.