-
Notifications
You must be signed in to change notification settings - Fork 4
The cursor has a problem, the location is displayed. #39
Comments
Is the cursor always in the wrong position for you, or under certain conditions (resizing, switching tabs, etc)? Do any of those actions correctly re-position the cursor? |
I am not very clear, this problem is not often appear! I don't know what's causing it! I'll be testing for a while, and so have the results to tell you! |
My cursor has an "extra" space between the character and the cursor itself. It took me several attempts to delete a character before I figured this one out. |
@Pantyboy Also on Windows? If so, what version? |
It happens to me in Windows 10 (64 bits). |
@matthew-dean I'm using Crunch 2 Pro on Windows 10, 64 bit. |
This one will probably prove difficult. It's either an Ace (editor) bug or a bug in Chromium for Windows. The only way this would happen (I think) is if it measured character width and the browser engine returned an inaccurate width. See if you can note any pattern, like resizing / switching / anything like that. I might be able to make a workaround if I know where it happens. |
@Pantyboy For you, is this a problem all the time? And if it's all the time, is it a problem no matter where the cursor is on the line? (For example, is it as "wrong" at the beginning of the line as a long line, or does the distance shift?) |
@matthew-dean The gap is only really visible at the end of the line so this is only when you notice the problem. |
This is technically an Ace issue, which I've raised with them, but I'll try to keep figuring out a workaround. I think rather than measuring the actual position of those characters, Ace attempts to math it out by measuring individual characters and some similar CSS to what's rendered in order to guess the cursor position. It appears those guesses are sometimes wrong under some unknown circumstances which seem to have been triggered in Crunch. |
Is this still an issue as of beta 8 for you in Windows? |
@matthew-dean From my perspective, this is fixed. Great job! |
No problem with beta 8 on Windows 10 x64 |
@TommyTheBlackbird Nuts. It's hard to guess where the failure point is. It might be some combination of how Ace is measuring lines + font + Chrome + Windows font rendering. Are all of you in the Facebook beta testing group? I might have to do some test builds with slightly different settings to see what fixes it for you. |
@TommyTheBlackbird could you try the editor at https://ace.c9.io/#nav=about? |
Ah, I can reproduce now in a Parallels virtual Win 10. |
Apparently Atom, which is pretty similar to NW.js as far as platform, has had lots of text-measuring issues, especially in regards to In the short term, if Ace doesn't have a fix, I might try to sub in Source Code Pro (which Hasklig is based on), and turn off optimizeLegibility (or |
Okay, with some more testing, I could reproduce cursor positioning problems on both Mac & Windows, not just Windows. After toggling |
The problem was not the font. What the problem is, I'm not exactly sure, but I think I have a working workaround. |
Fixed in beta 9. |
Fix confirmed here! Nice job! |
beta9 on win7 home premium x64 - working fine 👍 |
*whew * |
I had the same problem, only on Mac. On words like "difficult" the f and i would get grouped. This was due to a global I added
To my Ace editor wrapper and voila |
os: windows7
![86002397-156f-4e5d-b382-b1955e33836e](https://cloud.githubusercontent.com/assets/4361465/9513059/4f059a16-4cbd-11e5-8425-002305a60d1b.png)
The text was updated successfully, but these errors were encountered: