ui-ace icon indicating copy to clipboard operation
ui-ace copied to clipboard

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

Open elgs opened this issue 11 years ago • 17 comments

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.

elgs avatar Apr 11 '15 10:04 elgs

Having this issue as well.

ajmajma avatar Apr 20 '15 17:04 ajmajma

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

wdxiake avatar Apr 23 '15 07:04 wdxiake

Thanks @wdxiake, but line 148 of which file?

elgs avatar Apr 23 '15 07:04 elgs

ui-ace.js

kristw avatar May 13 '15 22:05 kristw

I just create a pull request for this https://github.com/angular-ui/ui-ace/pull/111

kristw avatar May 13 '15 22:05 kristw

+1

Shipow avatar May 26 '15 19:05 Shipow

+1

JumpLink avatar Jun 23 '15 09:06 JumpLink

:+1:

jdolan avatar Jun 30 '15 21:06 jdolan

+1

brettstack avatar Jul 13 '15 23:07 brettstack

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

akuznetsov-gridgain avatar Sep 03 '15 09:09 akuznetsov-gridgain

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;
                }
            };

runninghare avatar Sep 24 '15 09:09 runninghare

+1

lianyi avatar Apr 17 '16 16:04 lianyi

+1

jazzfog avatar Jun 05 '16 01:06 jazzfog

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

Thanks 👍

Antwnis avatar Jun 27 '16 13:06 Antwnis

@elgs Try this. This will remove the warning.

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

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

harshapps avatar Sep 19 '16 09:09 harshapps

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

palmkevin avatar Dec 08 '16 14:12 palmkevin

Can anyone elaborate this error means?

adamtaylor13 avatar May 29 '19 20:05 adamtaylor13