grg021 / pfflipper

Page Forest APP - Flipper: A split-flap display simulator
5 stars 1 forks source link

Pasting large text causes freak-out (really long text hangs up the browser). #11

Closed mckoss closed 13 years ago

mckoss commented 13 years ago

Enter:

So she was considering in her own mind (as well as she could, for the
hot day made her feel very sleepy and stupid), whether the pleasure
of making a daisy-chain would be worth the trouble of getting up and
picking the daisies, when suddenly a White Rabbit with pink eyes ran
close by her.

There was nothing so VERY remarkable in that; nor did Alice think it so
VERY much out of the way to hear the Rabbit say to itself, 'Oh dear!
Oh dear! I shall be late!' (when she thought it over afterwards, it
occurred to her that she ought to have wondered at this, but at the time
it all seemed quite natural); but when the Rabbit actually TOOK A WATCH

Result:

Displays lines 4-8 (that's correct) - but with some characters randomly cycling to other letters.

Expect:

Display lines 4-8 (the "middle" lines in this group) - but should terminate the animation and stop.

grg021 commented 13 years ago

Animation now terminates with this input. Fixed this issue using the clipText function.

mckoss commented 13 years ago

ok