diff --git a/core/src/display_object/edit_text.rs b/core/src/display_object/edit_text.rs index 8d3667d64231..518af006b303 100644 --- a/core/src/display_object/edit_text.rs +++ b/core/src/display_object/edit_text.rs @@ -2100,6 +2100,11 @@ impl<'gc> EditText<'gc> { Some(first_box.start()) } + /// Returns the index of the line that is at the given position. + /// + /// It returns `None` when there's no line at the given position, + /// with the exception that positions below the last line will + /// return the index of the last line. pub fn line_index_at_point(self, position: Point) -> Option { let edit_text = self.0.read();