ZMYaro / paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
https://paintz.app
53 stars 11 forks source link

Pasting when scrolled to the far right/bottom cuts off the pasted image #259

Closed ZMYaro closed 2 years ago

ZMYaro commented 2 years ago

Steps to reproduce the behavior

  1. Copy an image larger than the visible canvas area.
  2. Scroll to the bottom/right of the canvas.
  3. Paste.

Expected behavior The image is pasted at the top-left corner of the visible canvas, but the overflow is still there if the selection is dragged up/to the left.

Actual behavior The image is pasted at the top-left corner, but everything off the side of the canvas gets removed.

ZMYaro commented 2 years ago

Fixed in https://github.com/ZMYaro/paintz/commit/9b0f1b3537a4ad8593de66318da45797fdb3e8d8.