We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc6eb05 commit 0b0a07dCopy full SHA for 0b0a07d
aztec/src/main/kotlin/org/wordpress/aztec/EnhancedMovementMethod.kt
@@ -46,8 +46,8 @@ object EnhancedMovementMethod : ArrowKeyMovementMethod() {
46
layout.getLineBounds(line, lineRect)
47
48
val clickedWithinLineHeight = y >= lineRect.top && y <= lineRect.bottom
49
- val clickedOnSpanToTheLeftOfCursor = x in charPrevX..charX
50
- val clickedOnSpanToTheRightOfCursor = x in charX..charNextX
+ val clickedOnSpanToTheLeftOfCursor = x.toFloat() in charPrevX..charX
+ val clickedOnSpanToTheRightOfCursor = x.toFloat() in charX..charNextX
51
52
val clickedOnSpan = clickedWithinLineHeight &&
53
(clickedOnSpanToTheLeftOfCursor || clickedOnSpanToTheRightOfCursor)
0 commit comments