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

Clicking into editor causes scrolling and selection of code on first click #2126

Closed
cepharum opened this issue Sep 2, 2014 · 2 comments
Closed

Comments

@cepharum
Copy link

cepharum commented Sep 2, 2014

See my test page at http://fv2.gsap.de/ace-bug.html

In Firefox 31 (and earlier) there is a bug in ACE editor on clicking into it for the first time (since last page load) while page is scrolled down so editor's top edge isn't visible anymore. In this case the cursor isn't positioned at clicked code, but view is scrolled up again to align top edge of editor with top edge of view/window and selecting code with clicked position marking end of selection and height of selected code nearly matching amount of scrolling up.

I've tried to create as simple test scenario as possible at URL given above. Here are some screenshots for illustrating what is going on over here:

  1. on loading page
    on-page-load
  2. having scrolled down a bit so editor is partially out of view
    before-focusing-for-the-first-time
  3. on having clicked code in line 14
    on-clicking-code-in-line-14
@nightwing
Copy link
Member

This should be fixed in newer version, try https://github.com/ajaxorg/ace-builds/tree/v1.1.6

@cepharum
Copy link
Author

cepharum commented Sep 2, 2014

You are right. I was using latest version from CDN cdnjs proposed on your site. Trying v1.1.5 provided by jsDelivr everything's working as expected.

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

1 participant