Codesandbox-client: Cursor vs. actual position drift short as cursor moves to the right

Created on 28 Jun 2018  路  7Comments  路  Source: codesandbox/codesandbox-client

馃悰 bug report

I have noticed the cursor does not align with the actual position when editing a file the further you get to the right of the editing view.

I have been using codesandbox.io religiously for the past week but I have been muscling through the issue. Happening on a new Pixelbook running in Dev Channel(Chrome 69 as of tonights update)

Link to sandbox: https://codesandbox.io/s/5y986vvv4

All 7 comments

This is interesting, are you perhaps using a custom font?

I noticed it would go away if a moved font size to 14. 12 still makes it come back. No custom fonts

I also started getting this behavior today without changing preferences. It only seems to happen using Dank Mono without ligatures.

Specs

macOS Sierra Version 10.12.6
Chrome Version 67.0.3396.99 (Official Build) (64-bit)

Example

dank_mono_cursor_offset

I have reverted Dank Mono for now, I will take a look tomorrow how these character width calculations drift off.

Should be fixed now!

Fixed in #975. @yurikoex , @EmilTholin please let us know if it works.

It works like a charm! Thank you for the quick work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yazaabed picture yazaabed  路  3Comments

Haroenv picture Haroenv  路  3Comments

eckmLJE picture eckmLJE  路  3Comments

waruyama picture waruyama  路  3Comments

NataliaTepluhina picture NataliaTepluhina  路  3Comments