replete-android icon indicating copy to clipboard operation
replete-android copied to clipboard

[WIP] Animate history entries

Open roman01la opened this issue 6 years ago • 3 comments

Resolves #18

roman01la avatar Jan 20 '19 17:01 roman01la

That's cool! It is difficult to see from the animation above, but if you try this on an iOS device, the form entered animates in slightly before the evaluation result, which gives a pleasing cause / effect feeling. I can't recall if I coded anything to do this, other than perhaps animating the input, evaluating and then animating the output. I tried looking in the iOS code and didn't see any evidence of specifically delaying the output relative to the input. (It looks like they both animate in over a period of 50 ms).

mfikes avatar Jan 20 '19 21:01 mfikes

Oh, wait. Looking again, even though the animation duration is 50 ms, there is indeed a delay between the form entry and the evaluation of another 50 ms here https://github.com/replete-repl/replete-ios/blob/b08f543e3f504d7ca79a004d906e67fad416474c/Replete/ReplViewController.swift#L461

mfikes avatar Jan 20 '19 21:01 mfikes

Yeah, I'm looking into ways of doing this on Android. 50ms delay before evaluating a form seems legit as well.

roman01la avatar Jan 20 '19 23:01 roman01la