qeude / SwiftDown

📦 A themable markdown editor component for your SwiftUI apps.
MIT License
472 stars 50 forks source link

Cursor jumping to the end of line #11

Closed edimoldovan closed 1 year ago

edimoldovan commented 2 years ago

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?

qeude commented 2 years ago

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

edimoldovan commented 2 years ago

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

hstdt commented 2 years ago

@edimoldovan same as #10 ?

edimoldovan commented 2 years ago

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

yonaskolb commented 2 years ago

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

paulja commented 2 years ago

+1

niravbhimani53 commented 2 years ago

Issue observed with Bold Italic.

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

scotch115 commented 2 years ago

Also getting this issue, +1

leonschrijvers commented 1 year ago

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.

qeude commented 1 year ago

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?