iafan / goplayspace

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more
https://goplay.space
Other
982 stars 61 forks source link

Mouse Point place in wrong position after paste code. #24

Open EasonWang01 opened 6 years ago

EasonWang01 commented 6 years ago

After paste code to this playspace the mouse point place will a litttle higher then before.

iafan commented 6 years ago

It would be nice to provide more details with the bug report: what the code looked like before the paste, what was the position of the caret, what was the pasted snippet, what was the observed and expected resulting output and caret position. Also, what was the browser, and did you try to reproduce this in other browsers?

If you can boil this issue down to some minimal text, that would simplify debugging.

Having said that, the quickest workaround for the issue would be to disable syntax highlighting. With highlighting turned off, the editor behaves like a regular textarea and shouldn't have any positioning issues.

EasonWang01 commented 6 years ago

Yes,close the syntax highlighting will fix this issue.