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

Add an option to maintain aspect ratio when resizing #225

Closed ZMYaro closed 3 years ago

ZMYaro commented 3 years ago

MS Paint does not update the entered values when the box is checked; only after editing one of the fields. That seems like a worse UX than I want. I am leaning toward having the following happen when the box is checked:

IF only the width has been changed OR the width and height have both been changed, scale the height to correspond to the entered width. ELSE IF only the height has been changed, scale the width to correspond to the entered height.

ZMYaro commented 3 years ago

Implemented as in MS Paint in https://github.com/ZMYaro/paintz/commit/8acb57895f650d206714fa40ecd36715e1177040. Updated to automatically adjust values when the box is checked in https://github.com/ZMYaro/paintz/commit/76c546352f1e689c183a908eaa857537b411882f.