You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
On the Resizing menu, when attempting to type values into the width and height fields (instead of using the sliders to increase/reduce the image), whenever I try to type something it just replaces it with 32 (which I assume is the minimum allowed size for the image), that is unless the number I'm typing begins with a value higher than 32 (i.e: typing in 700 works, typing in 250 does not).
I believe the editor is detecting me attempting to type in a value lower than 32 on the input, and then auto-correcting it to this value to prevent the user trying to set the image smaller than possible. However, the delay on it is way too small, and if I just want to type in 100 for example, I can't really do that through the input.
Additional context
I was about to open this as a bug because it pretty much makes it impossible for anyone to resize images to any value lower than 320, because when you begin typing what you want, it just replaces it instantly. However, I thought I'd ask if this is expected behavior first.
Anyway, in case this is expected, does any one know how I could go about preventing this behavior? Some of the solutions that crossed my mind:
Is it possible for me to easily set which is the minimum image size? This way I could set it to 1 so that people can type in whatever they like without it being replaced on the input
Is there a way for us to increase the delay before the input auto-corrects the value? This way, if someone types in like 250, it wouldn't detect the "25" and replace it before the user is done typing.
Thank you for the attention and let's see if we can work around this!
And, before I forget, thanks to the maintainers for providing us with this awesome library!
The text was updated successfully, but these errors were encountered:
Summary
On the Resizing menu, when attempting to type values into the width and height fields (instead of using the sliders to increase/reduce the image), whenever I try to type something it just replaces it with 32 (which I assume is the minimum allowed size for the image), that is unless the number I'm typing begins with a value higher than 32 (i.e: typing in 700 works, typing in 250 does not).
I believe the editor is detecting me attempting to type in a value lower than 32 on the input, and then auto-correcting it to this value to prevent the user trying to set the image smaller than possible. However, the delay on it is way too small, and if I just want to type in 100 for example, I can't really do that through the input.
Screenshots
Version
Using on React v3.15, but this is easily reproduceable here https://nhn.github.io/tui.image-editor/latest/tutorial-example01-includeUi on the online demo
Additional context
I was about to open this as a bug because it pretty much makes it impossible for anyone to resize images to any value lower than 320, because when you begin typing what you want, it just replaces it instantly. However, I thought I'd ask if this is expected behavior first.
Anyway, in case this is expected, does any one know how I could go about preventing this behavior? Some of the solutions that crossed my mind:
Thank you for the attention and let's see if we can work around this!
And, before I forget, thanks to the maintainers for providing us with this awesome library!
The text was updated successfully, but these errors were encountered: