SwiftDown icon indicating copy to clipboard operation
SwiftDown copied to clipboard

Cursor jumping to the end of line

Open edimoldovan opened this issue 3 years ago • 7 comments

Hi! I am experiencing a cursor jump to the end of text on each formatting being applied. Anything I could do to stop this from happening?

edimoldovan avatar May 12 '22 10:05 edimoldovan

Hi! Could you please tell me on which platform you are trying to use SwiftDown and on which this occurs please? 🙌🏼

qeude avatar May 12 '22 12:05 qeude

Yes, sure. I tried it in an iOS app. Latest stable release I believe.

edimoldovan avatar May 17 '22 14:05 edimoldovan

@edimoldovan same as #10 ?

hstdt avatar May 17 '22 14:05 hstdt

I didn't watch the video carefully enough, it seams. Same issue as #10.

edimoldovan avatar May 18 '22 22:05 edimoldovan

I'm getting this too on macOS 12.4 with Xcode 14. The issue occurs when navigating within the markdown with arrow keys and then typing. Instead of the focus staying where you typed, it jumps to the end of the string

yonaskolb avatar Jul 06 '22 13:07 yonaskolb

+1

paulja avatar Jul 08 '22 15:07 paulja

Issue observed with Bold Italic.

https://user-images.githubusercontent.com/12537912/182014932-6368bbdf-ee06-4ca9-bbb1-3eaf6f9b4ca6.mov

niravbhimani53 avatar Jul 31 '22 07:07 niravbhimani53

Also getting this issue, +1

scotch115 avatar Oct 12 '22 16:10 scotch115

This issue can also be reproduced on macOS Ventura 13.0.1 with Xcode 14.1. It makes this package unusable as an editor, which is too bad because it has so much potential. I would love to help to figure this out, but my experience with Swift and SwiftUI is still limited, so it's hard to figure out where to start.

leonschrijvers avatar Dec 23 '22 12:12 leonschrijvers

Hi! There is a PR #17, if anyone want to give a try before I merge it and I release an update of the package?

qeude avatar Jan 02 '23 21:01 qeude