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 randomly in Code Editor. #7847

Closed
sadathanwar17 opened this issue Apr 1, 2016 · 66 comments
Closed

Cursor jumps randomly in Code Editor. #7847

sadathanwar17 opened this issue Apr 1, 2016 · 66 comments
Labels
status: resolved/shipping To be applied to issues or PR's that are already fixed and are awaiting DevOps deployment type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.

Comments

@sadathanwar17
Copy link

sadathanwar17 commented Apr 1, 2016

In all the exercises, we the users are forced to press the enter key before writing any code.


Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:
Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.

@BKinahan
Copy link
Contributor

BKinahan commented Apr 1, 2016

I could not reproduce this.

Could you provide some more information about your device / browser? I'm able to type within the editor as soon as a challenge loads, with the editor automatically taking focus, without needing to press enter.

It could be an issue specific to your setup.

@erictleung erictleung added the status: blocked Is waiting on followup from either the Opening Poster of the issue or PR, or a maintainer. label Apr 1, 2016
@smlabt
Copy link

smlabt commented Apr 8, 2016

I think I'm having the same issue with the editor.

In this exercise (please see image below) for example, I'm not able to focus some parts of the code before hitting enter (Neither with the mouse, nor with the keyboard). No matter where I'm clicking below line 54, the cursor jumps right to the beginning of line 54. After hitting "enter" once anywhere in the code, it all works fine!

I'm running latest Version of Chrome on Windows 10. I've noticed this issue in most of the exercices so far.

image

@astronautCat
Copy link

I have the same issue as smlabt no matter what exercise i'm doing. I'm using Firefox on Windows 10.

@ghost
Copy link

ghost commented Apr 9, 2016

Line 56 input>would that work

@benmcmahon100
Copy link
Member

For anyone having this issue please post your browser, os and challenge you first experienced this on. If possible a video of a GIF of the problem would be extremely helpful. Without this information the issue cannot be fixed.

@smlabt
Copy link

smlabt commented Apr 9, 2016

Like I said I'm using Chrome on Windows 10.
Please try to reproduce the issue with a smaller window. I can imagine that this behaviour could have been caused by the line breaks.
I will try to create a gif asap.

@benmcmahon100
Copy link
Member

@smlabt don't worry about the gif i have successfully reproduced it. Thank you for the help!

@erictleung erictleung added type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc. help wanted Open for all. You do not need permission to work on these. confirmed and removed status: blocked Is waiting on followup from either the Opening Poster of the issue or PR, or a maintainer. labels Apr 10, 2016
@chandramaniadil
Copy link

In some tasks the cursor won't go till last line ,it stopped going down before 3-5 line above ,so i had to make space above to complete it .(occurred mostly in html-css tasks)
My user agent is Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 @BKinahan

@jmargolisvt
Copy link

Using this for the first time and this usability issue it the first thing I noticed. It's true for all challenges I've tried so far in the javascript path. The only way I can get to the code window is to click in. This is also true for scrolling the instructions panel.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

@espdesign
Copy link

espdesign commented Apr 18, 2016

I just started learning to code on Code Free Camp. As I literally just started I am a bit anxious in even trying to offer my help in diagnosing the issue.

What I can offer is my experience. Each time I load a page, I click onto the code window and try to type at the clicked location.
The actual location that it types at is bellow (seeming randomly) a short distance down from where I originally clicked.

The only time the cursor failed to jump down was when I clicked on first line in the editor. The one it starts at when the page loads.

(edit)
I also wanted to add. The problem seemed to not be an issue again starting on "https://www.freecodecamp.com/challenges/create-a-bootstrap-headline"
but its still an issue if I go back to the previous lesson.

@ghost
Copy link

ghost commented Apr 21, 2016

Here is the fix that I use:

When the cursor starts becoming unresponsive, scroll down to the last line of the code - there is usually a blank line.

Place your cursor on the blank line, and use "delete" or "backspace" to bring the cursor up to the line that has text on it.

The cursor will now work fine for this challenge.

I have been having this issue since Challenge #35, using Chrome on Windows 10. The issue persists intermittently. When I encounter it again I will record it.

@ReactorboY
Copy link

have same issue here

@svershin
Copy link

svershin commented Nov 1, 2016

Windows 10, Chrome version Version 54.0.2840.71 m.

I've noticed that the bug crops-up when the code sample loaded with the lesson contains lines that are long enough to be wrapped on to the next line. If all of the lines are short, there is no issue.

Going to the top line (position 0, line 0) and pressing delete once seems to fix the problem.

@ghost
Copy link

ghost commented Nov 1, 2016

Yes Thank You!

On Tue, Nov 1, 2016 at 3:34 AM, svershin notifications@github.com wrote:

Windows 10, Chrome version Version 54.0.2840.71 m.

I've noticed that the bug crops-up when the code sample loaded with the
lesson contains lines that are long enough to be wrapped on to the next
line. If all of the lines are short, there is no issue.

Going to the top line (position 0, line 0) and pressing delete once seems
to fix the problem.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#7847 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASTtQD6EtjYcLsMBHxY45d5-uEbIq5Zqks5q5xWfgaJpZM4H91tE
.

@CypherConjured
Copy link

CypherConjured commented Nov 11, 2016

Google Chrome - Verified Open on 11/11/16.

Steps to Reproduce:
1.) Load any page with the code editor that contains a long line, such as [https://www.freecodecamp.com/challenges/center-text-with-bootstrap]
2.) Shrink the page to a size where the lines wrap.
3.) Perform a Hard Refresh of the page.
4.) Click toward the right side of the editor.
5.) Observe, the caret often does not move to the end of the line.

@raisedadead
Copy link
Member

Hey guys this is confirmed issue, kindly use the reactions on the first post instead for confirming.

image

Let's keep the thread clean for potential solutions only.

@ghost
Copy link

ghost commented Nov 20, 2016

I can reproduce the issue in Edge browser as well as Chrome. In order to get it to stop (for the current challenge only) I zoom out then zoom back in. It sucks but it works for me.

@znllnz
Copy link

znllnz commented Nov 29, 2016

I had this issue as referenced by @erictleung here

for some reason I didn't get an email notification that anyone had responded to it until the issue was closed.

hitting enter does seem to fix it

@mrgizmo
Copy link

mrgizmo commented Dec 29, 2016

I have the same issue:

  1. Can't position cursor in some areas, not with click, nor with keyboard arrows
  2. When I try to delete something, other stuff is deleted, like cursor position is incorrect

This happens with chrome and firefox
Update: "Reset" Code button helped this time, but only in one particular challenge.....in the next one, issue reproduces itself....and I'm forced to reset code again and it happens every time with new challenge.

@raisedadead
Copy link
Member

@mrgizmo thanks, please refer #7847 (comment)

@freeCodeCamp freeCodeCamp locked and limited conversation to collaborators Jan 4, 2017
@raisedadead raisedadead added status: resolved/shipping To be applied to issues or PR's that are already fixed and are awaiting DevOps deployment and removed help wanted Open for all. You do not need permission to work on these. labels Jan 4, 2017
@raisedadead
Copy link
Member

I have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:
Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.

@raisedadead raisedadead changed the title Forcing user to press enter before writing any code in the editor Cursor jumps randomly in Code Editor. Feb 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: resolved/shipping To be applied to issues or PR's that are already fixed and are awaiting DevOps deployment type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Projects
None yet
Development

No branches or pull requests