Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Simulated mouse + keyboard playback broken #146

jlfwong opened this Issue · 5 comments

2 participants


Audio is working, but the simulated playback is broken.

Hit play on and open up the console.

Uncaught TypeError: Cannot read property 'end' of null


So this is really weird - as far as I can tell before recording began the mouse cursor was already in the editor (rather than at position 0,0, which is where the default is). I should probably lock the editor to make SUPER sure that you can't accidentally click before it begins recording.

@jeresig jeresig closed this issue from a commit
@jeresig jeresig Change the logic for when selection commands are ignored. Only drop c…
…ommands when a selection immediately follows another selection AND they are identical - but keep them if there have been other commands in-between, even if they are over the same selection range. Fixes #151. (hopefully) Fixes #146.
@jeresig jeresig closed this in 419ff54
@jeresig jeresig reopened this

Sounds like this is still an issue, it happened here as well:


One thing that I just noticed in this previous problem is that there is only 1 line of code, although Jamie says that the cursor was starting on the second line. Might make for an avenue of exploration.


This took way too long to figure out, but I think I finally have - it appears as if middle clicking causes the selection to change but there are no events being reported (and thus are not logged). I'm looking into this now.


OK. So I figured it out: if you blur the editor and then focus it again by only middle clicking it, this effectively causes an empty selection to be created without re-selecting from the previous selection. As far as I can tell this is the only time that this occurs. Either way I've improved the logic such that I'm now tracking this empty selection edge case and it seems to be working on my end. Will be tracking/discussing over here:

@jeresig jeresig closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.