ember-twiddle icon indicating copy to clipboard operation
ember-twiddle copied to clipboard

Cursor Bug

Open KTKate opened this issue 9 years ago • 5 comments

  1. Open a new twiddle
  2. Use the file tree to navigate to twiddle.json (didnt try others)
  3. Click at the end like you want to add a comma so you can add another entry in the list. The cursor refuses to go all the way to the right.
  4. Start typing. The cursor jumps up to another line.

http://gifyu.com/images/weirdcursor.gif http://gifyu.com/images/weirdcursor2.gif Note: the screen flickering seems to be a product of the way I converted .mov into .gif and isn't there irl.

KTKate avatar Sep 14 '15 21:09 KTKate

Also, on the first keypress this error pops up. screen shot 2015-09-14 at 4 46 25 pm

KTKate avatar Sep 14 '15 21:09 KTKate

This seems to be related to https://github.com/codemirror/CodeMirror/issues/1642

The workaround seems to be we have to call setSize() on each of the CodeMirror editors after any resize. That's going to be annoying to implement.

The error you are seeing in the console is just due to invalid twiddle.json

Gaurav0 avatar Sep 15 '15 11:09 Gaurav0

@Gaurav0 I was thinking about how to approach this so I'll list some options:

  • Use the split-view addon (or potentially improve it / base our own split-view on it if needed)
  • css-element-queries seems pretty promising (it has a ResizeSensor class which would be useful to us) it could be used to watch when the FileEditorColumn dom element resizes

piotrpalek avatar Dec 21 '15 19:12 piotrpalek

This problem still exists.

Gaurav0 avatar Apr 19 '18 07:04 Gaurav0

This seems to be fixed.

spruce avatar Oct 31 '18 09:10 spruce