Avoid drag on double or triple click for now in TextEditor
This commit is contained in:
parent
c9dbccba46
commit
45c5cfe577
2 changed files with 32 additions and 24 deletions
|
|
@ -61,6 +61,10 @@ impl Click {
|
|||
self.kind
|
||||
}
|
||||
|
||||
pub fn position(&self) -> Point {
|
||||
self.position
|
||||
}
|
||||
|
||||
fn is_consecutive(&self, new_position: Point, time: Instant) -> bool {
|
||||
let duration = if time > self.time {
|
||||
Some(time - self.time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue