Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException when dispatch touch event #362

Open
kyze8439690 opened this issue Jan 19, 2023 · 0 comments
Open

IllegalArgumentException when dispatch touch event #362

kyze8439690 opened this issue Jan 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kyze8439690
Copy link

Fatal Exception: java.lang.IllegalArgumentException: Cannot coerce value to an empty range: maximum 51 is less than minimum 190.
       at kotlin.ranges.RangesKt___RangesKt.coerceIn(RangesKt___RangesKt.java:1413)
       at io.github.rosemoe.sora.widget.layout.BidiLayoutHelper.horizontalIndex(BidiLayoutHelper.java:105)
       at io.github.rosemoe.sora.widget.layout.WordwrapLayout.getCharPositionForLayoutOffset(WordwrapLayout.java:379)
       at io.github.rosemoe.sora.widget.CodeEditor.getPointPosition(CodeEditor.java:2055)
       at io.github.rosemoe.sora.widget.EditorTouchEventHandler$SelectionHandle.applyPosition(EditorTouchEventHandler.java:838)
       at io.github.rosemoe.sora.widget.EditorTouchEventHandler.handleSelectionChange(EditorTouchEventHandler.java:431)
       at io.github.rosemoe.sora.widget.EditorTouchEventHandler.onTouchEvent(EditorTouchEventHandler.java:367)
       at io.github.rosemoe.sora.widget.CodeEditor.onTouchEvent(CodeEditor.java:4219)
       at android.view.View.dispatchTouchEvent(View.java:15533)
       at io.github.rosemoe.sora.widget.CodeEditor.dispatchTouchEvent(CodeEditor.java:4176)
@Rosemoe Rosemoe added the bug Something isn't working label Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants