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 367538a commit cc1b40aCopy full SHA for cc1b40a
core/src/display_object/edit_text.rs
@@ -2155,6 +2155,11 @@ impl<'gc> EditText<'gc> {
2155
Some(first_box.start())
2156
}
2157
2158
+ /// Returns the index of the line that is at the given position.
2159
+ ///
2160
+ /// It returns `None` when there's no line at the given position,
2161
+ /// with the exception that positions below the last line will
2162
+ /// return the index of the last line.
2163
pub fn line_index_at_point(self, position: Point<Twips>) -> Option<usize> {
2164
let edit_text = self.0.read();
2165
0 commit comments