Typing for too long in text fields sometimes reverts to previous text

1 sentence description of the problem (I was doing _coding, and then the variable went all weird happened):

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. Make a “Set Variable” block and put a variable in.
  2. Start typing in the box of what the variable will be set to.
  3. A sentence or two later and it starts glitching.
  4. You can tell if it glitches in two ways. The text in the block looks bold and if you press save and re-enter it erases some of your work.

I expected this to happen: Edit a variable like normal

But instead this happened: Edit a variable but it goes all funky and messes me up!

Here’s a sweet screenshot/video:

https://files.catbox.moe/vaujpf.MOV


Your username: StarlightStudios

What kind of device are you using?: (Also include iOS version, and Hopscotch version)

Btw my phone is a iPhone SE 2nd gen not a 8 or 12.

Also this might only break the text if you use a game variable and use lots of spaces in a row. Also you might have to exit and re-enter the variable thing idk just try it out.

9 Likes

I was not able to reproduce this, even when typing the exact phrase you wrote. Parameters take a little to update so undo doesn’t just undo a single character. After the parameter updates, try tapping out of the variable block first, then see if the problem is still there.


And yes, iPhone12,8 does mean a 4.7” 2nd Gen iPhone SE.

I have an iPad13,8 (12.9” M1 iPad Pro) on iPadOS 15.7 (because iPadOS 16 still isn’t here).

Device simply just shows the device code. It doesn’t reflect the actual name of the device.


8 Likes

Wait…
You have 525 seeds!!!
Anyways, I don’t think this is a bug. Maybe try clicking anywhere to get out of the block, and go back into the block

5 Likes

It’s definitely a bug it’s not supposed to erase text I put in the block

3 Likes

I just caught this on video

@Crosbyman64 @Octo-Pi

5 Likes

That happens to me also

4 Likes

i like how you’re writing poetry in variables lol -

i haven’t experienced this bug but it loks annoying, hope it gets fixed soon!

6 Likes

It’s part of a new game I’m making!

Thanks!

3 Likes

“Exiting a variable string editor thing without pressing :white_check_mark: button causes hopscotch to act weirdly and not save the edited content (text) properly”

i’ve had this ton of times but i’m too busy to create a bug report. you can notice if you click :white_check_mark: to save your text, hopscotch will not glitch

5 Likes

Yeah but it erased it while I was typing, or was that because I didn’t press it before?

3 Likes

It still glitches if I press the checkmark

3 Likes

Alternate title: Text parameters sometimes forgets what you typed when typing for too long

It might be due to how UNDO and REDO works, but still, text disappearing like that is very annoying…

And I thought the “cursor automatically gets sent to the end of text if it contains an emoji” bug was bad… (luckily, the bug I just described isn’t an issue anymore…)

5 Likes

The text resizing bug that makes the text blurry is another bad bad bug :((

3 Likes

Yes it is… It’s a mystery why it’s occurring…

I did also notice the blurry text, which was discovered by Spy Guy 96. This is another bug, that I think might be related…

3 Likes

That’s not what I’m talking about, this is an example of what I mean

2 Likes

If you increase the size instead, the project will start to lag badly.

2 Likes

Setting the size to something smaller than 100, setting the text, then setting it back to 100 has the same effect, it gets worse the smaller the first number is. Setting the size to 101 after setting the text makes it look sharp.

It may be a text rendering error that causing it to be blurry, because if you only set a small size after setting the text, it’s as sharp as it can be. It mainly only happens when the length (width) of the text isn’t the same before the small size is set.

3 Likes

Hmm. It might just be an issue on iPhones. I’ve been typing a lot in parameters on my iPad, and it never glitched out / erase some text.

I just typed “random message” repeatedly.

3 Likes

Maybe has something to do with undo and redo

3 Likes

Yeah I’ve had this happen too just now while testing a single sentence — it is pretty frustrating!

I will do some more investigation and see if we can find a fix for it.

Also I noticed the gap when typing on iPhone, between the text and the buttons on the right — we will fix that too.

2 Likes