massivemadness / Squircle-CE

👨‍💻 Squircle CE is a fast and free multi-language code editor for Android
https://play.google.com/store/apps/details?id=com.blacksquircle.ui
Apache License 2.0
1.38k stars 101 forks source link

Fix Horizontal Scroll #179

Open mablue opened 1 year ago

mablue commented 1 year ago

Is your feature request related to a problem? Please describe.

drag to scroll is one of important things on mobile text editors but in this version we never cant go to the end of an unwrapped line cuz while horizontal draging we just repose the keyboard cursor and we can't never reach to the end of the line

Describe the solution you'd like I want to drag the screen to just scrolling vertically and horizontally but if I click on screen it can show A watter droplet 💧 under mouse cursor to drag it to repose the cursor and if user drag any other place it will just scroll the whole page to reach to the end of lines and doc itself.

Describe alternatives you've considered Check ACode editor.

Additional context An important trick I seen in Acode is that It first checks the direction of movement in normal drag than if its It is almost vertical, It just activates vertical scrooling and if its almost horizontal it just enables horizontal movement in the editor. I think it have a reason but if you can make a mixed horizontal and vertical movement It can be better I think... but in squricle if somebody want to scrool horizontally it should be first scrool vertically to activate scrooling than it will move the finger right or left to scrool horizontally :)) otherwise it will not work. but in acode if the user exactly didnt click on the droplet 💧 it will never not go to the cursor movement mode... user wants to move whole of his code without thinking about that (ok I want to move to the end of line 324 so I will first scrool up to the line 300 so I will move my finger vertically to activate scrooling mode so If I lucky and my finger is not in the left edge of my phone I will move my finger slowly to the left and reach to the half of the line 324