question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The cursor position does not match the input

See original GitHub issue

Problem

There is a problem with the cursor position in my code

Sample code to reproduce your issue

<AceEditor 
                                width="100%" 
                                height="400px"
                                ref={editor}
                                mode="python"
                                fontSize="14px"
                                value={field.plugin_code}
                                showPrintMargin={false}
                                theme="chrome"
                                onChange={changeContent}
                                setOptions={{
                                    useSoftTabs: true
                                }}
                                cursorStart={1}
                                name="插件"
                                onFocus={focus("plugin_code")}
                                style={{ border:"1px solid var(--inputcolor)",lineHeight:"24px"}}
                                editorProps={{ $blockScrolling: Infinity }}
                               
                            />

References

Progress on: # 微信截图_20190619180534

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

1reaction
Athinodoroscommented, Jul 10, 2019

I have the same experience the cursor has an offset of 4 slots

0reactions
xiaoguoqingxxcommented, Mar 30, 2022

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

Read more comments on GitHub >

github_iconTop Results From Across the Web

Position of mouse pointer does not match screen coordinates ...
Position of mouse pointer does not match screen coordinates clicked · Open control panel > Hardware & Sound. · Click on Mouse. ·...
Read more >
cursor position does not appear in text input? - Stack Overflow
I got the answer from here. this solved my issue. Just style your input like this: caret-color: #333333;.
Read more >
cursor dont show the input position · Issue #1158 · connectbot ...
the cursor position does not start at the prompt. Entering some letters, the cursor runs right before the letter. The distance between the...
Read more >
cursor position is incorrect when using latest new version
Careful examination shows that the cursor position shown on the IOS devices does not match the cursor position on my mac.
Read more >
vmmouse cursor position doesn't match screen coordinates
If you happen to see a button or menu item highlight from mouseover, click will work, but cursor is far away. Version-Release number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found