double click fixed
This commit is contained in:
parent
c6c8cabdaf
commit
c47e30e960
2 changed files with 4 additions and 6 deletions
|
|
@ -214,12 +214,10 @@ where
|
|||
|
||||
match self.state.mouse.update(cursor_position) {
|
||||
Interaction::DoubleClick(_) => {
|
||||
let end = self.state.cursor.end();
|
||||
self.state.cursor.select_range(
|
||||
self.value.previous_start_of_word(
|
||||
self.state.cursor.end(),
|
||||
),
|
||||
self.value
|
||||
.next_end_of_word(self.state.cursor.end()),
|
||||
self.value.previous_start_of_word(end),
|
||||
self.value.next_end_of_word(end),
|
||||
)
|
||||
}
|
||||
Interaction::TripleClick(_) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue