Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor jumps to start of textbox #50

Open
insperatum opened this issue Nov 8, 2017 · 3 comments
Open

Cursor jumps to start of textbox #50

insperatum opened this issue Nov 8, 2017 · 3 comments

Comments

@insperatum
Copy link

We're using a WebPPL editor for class assignments, and some students have complained that the cursor is jumping back to the start of the textbox while they're editing.

This only happens after webppl has thrown an error. I've tracked it down, and commenting out this line fixes it for us:

runClockId = setInterval(function() {

What's the run clock for? Is there a reason we shouldn't comment this line out?

Cheers,
Luke

@longouyang
Copy link
Member

The run clock measures how long a webppl program has been running for. If you click the little triangle below the code box, you'll see the runtime measurement as well as other info useful for debugging:

screen shot 2017-11-08 at 4 25 46 pm

It's not essential, so you can certainly comment that line out.

I can't reproduce the cursor problem -- can you send me some code that results in this problem? Also, are you guys running the editor on webppl.org or some other page?

@longouyang
Copy link
Member

Nudging @insperatum

@insperatum
Copy link
Author

Hey, thanks for getting back to me. We're not running the editor on webppl.org, but set up our own page to host problem sets for Josh Tenenbaum's class.

It's working now that the run clock stuff has been commented out :)

Best,
Luke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants