ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)
https://ace.c9.io
Other
26.68k stars 5.28k forks source link

Cursor as in textarea on mobile devices #4178

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello.

in the editor on mobile devices, moving the cursor is only possible by tapping. It is not comfortable. for example: 1

How can I smoothly move the cursor by swipe, just as it works in the element textarea using native tools iOS/Android? for example: 2

bmatusiak commented 4 years ago

it looks like thats native to the phone's keyboard+webkit software, but if i wher to code it in,, i would have to hook into the webkit's touch sensors, and watch for a direction.. but i dont know how that would work with selection in ace and current cursor rules

ghost commented 4 years ago

this problem can not be solved? tell me where is the source of the code that is responsible for this and I will think about how to change it

xu-xionglong commented 2 years ago

Hi, do you find the solution to solve this problem? I meet the same problem and I found that codemirror behave exactly what we are looking for. However, it takes some effort for me to migrate from ace to codemirror

akoreman commented 1 year ago

Thanks for letting us know, deleted the comment (it's still there in your comment though). (For future reference, the deleted comment mentioned https://github.com/react-simple-code-editor/react-simple-code-editor as an alternative code editor which functions as desired in this issue)

andredcoliveira commented 1 year ago

This should be fixed for Android in #5087. Next step is to verify this and also to understand what it means for other mobile platforms (e.g., iOS)

github-actions[bot] commented 13 hours ago

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.