MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / input_finger_touch_down

Method input_finger_touch_down

src/RichTextUserInput.cpp:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void RichTextUserInput::input_finger_touch_down(const Vector2f& pos) {
131 RichText::TextBox::Cursor oldCursor = *cursor;
132 cursor->pos = cursor->selectionBeginPos = cursor->selectionEndPos = textBox->get_text_pos_closest_to_point(pos);
133 if(oldCursor != *cursor)
134 android_force_update_cursor();
135}
136
137void RichTextUserInput::input_finger_held_motion(const Vector2f& pos) {
138 RichText::TextBox::Cursor oldCursor = *cursor;

Calls 1

Tested by

no test coverage detected