Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Automatically scrolling cursor into view after selection change this will be disabled in the next version set editor.$blockScrolling = Infinity to disable this message #104

Open
elgs opened this issue Apr 11, 2015 · 17 comments

Comments

@elgs
Copy link

elgs commented Apr 11, 2015

After upgraded to version 1.1.9. The console started be polluted by this message:

Automatically scrolling cursor into view after selection change this will be disabled in the next version set editor.$blockScrolling = Infinity to disable this message

I have a lot of ui-ace editors, most of them don't have any onLoad. Can you take them away? Thanks.

@ajmajma
Copy link

ajmajma commented Apr 20, 2015

Having this issue as well.

@wdxiake
Copy link

wdxiake commented Apr 23, 2015

Just add acee.$blockScrolling = Infinity; after line 148. These warnings will stop.

@elgs
Copy link
Author

elgs commented Apr 23, 2015

Thanks @wdxiake, but line 148 of which file?

@kristw
Copy link

kristw commented May 13, 2015

ui-ace.js

@kristw
Copy link

kristw commented May 13, 2015

I just create a pull request for this
#111

@Shipow
Copy link

Shipow commented May 26, 2015

+1

3 similar comments
@JumpLink
Copy link

+1

@jdolan
Copy link

jdolan commented Jun 30, 2015

👍

@brettstack
Copy link

+1

mcast added a commit to mcast/rust-playpen that referenced this issue Jul 18, 2015
  "Automatically scrolling cursor into view after selection change"
  "this will be disabled in the next version"
  "set editor.$blockScrolling = Infinity to disable this message"

cf. ajaxorg/ace#2499

> [...]  I'm calling a documented API, and it's in turn
> telling me to call an undocumented one.

and angular-ui/ui-ace#104
@akuznetsov-gridgain
Copy link

+1 Please add support for specifying "$blockScrolling = Infinity" via advanced options.

@runninghare
Copy link

You can also specify $blockScrolling = true in the onLoad callback function:

            _ctrl.aceEditorOptions = {
                useWrapMode: true,
                mode: 'css',
                onLoad: function (_editor) {
                    // This is to remove following warning message on console:
                    // Automatically scrolling cursor into view after selection change this will be disabled in the next version
                    // set editor.$blockScrolling = Infinity to disable this message
                    _editor.$blockScrolling = Infinity;
                }
            };

respeccing pushed a commit to respeccing/rust-playpen that referenced this issue Apr 3, 2016
  "Automatically scrolling cursor into view after selection change"
  "this will be disabled in the next version"
  "set editor.$blockScrolling = Infinity to disable this message"

cf. ajaxorg/ace#2499

> [...]  I'm calling a documented API, and it's in turn
> telling me to call an undocumented one.

and angular-ui/ui-ace#104
@lianyi
Copy link

lianyi commented Apr 17, 2016

+1

@jazzfog
Copy link

jazzfog commented Jun 5, 2016

+1

@Antwnis
Copy link

Antwnis commented Jun 27, 2016

Can you please approve this change-request ? It's so small and yet fixes a particular log-pollution issue

Thanks 👍

@harshapps
Copy link

@elgs Try this. This will remove the warning.

var editor = ace.edit("editor");

editor.getSession().setMode("ace/mode/javascript");
editor.$blockScrolling = Infinity;

@palmkevin
Copy link

Thank you @harshapps Your solution is exactly what I was looking for!

@adamtaylor13
Copy link

Can anyone elaborate this error means?

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

No branches or pull requests