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

Scroll jumps when refocusing canvas after switching tools #192

Closed ZMYaro closed 3 years ago

ZMYaro commented 3 years ago

Formerly “Scroll jumps when drawing after panning with the hand tool”

Steps to reproduce the behavior

  1. Zoom in
  2. Switch to the hand tool
  3. Scroll from farther down to the top of the image
  4. Switch to the brush tool
  5. Attempt to draw
  6. The image jumps down

Expected behavior The image should stay where I left it.

Environment

ZMYaro commented 3 years ago

I never noted it here, but it appears this happens because of how the browser shifts the canvas when it gets focused.