Working underline based on symbol origin
This commit is contained in:
parent
4286a9b564
commit
848445455d
11 changed files with 332 additions and 74 deletions
|
@ -294,7 +294,13 @@ impl Presenter {
|
|||
Event::MouseMoved { .. } => {
|
||||
self.last_mouse_moved_event = Some(event.clone());
|
||||
}
|
||||
Event::LeftMouseDragged { position } => {
|
||||
Event::LeftMouseDragged {
|
||||
position,
|
||||
shift,
|
||||
ctrl,
|
||||
alt,
|
||||
cmd,
|
||||
} => {
|
||||
if let Some((clicked_region, prev_drag_position)) = self
|
||||
.clicked_region
|
||||
.as_ref()
|
||||
|
@ -308,6 +314,10 @@ impl Presenter {
|
|||
self.last_mouse_moved_event = Some(Event::MouseMoved {
|
||||
position,
|
||||
left_mouse_down: true,
|
||||
shift,
|
||||
ctrl,
|
||||
alt,
|
||||
cmd,
|
||||
});
|
||||
}
|
||||
_ => {}
|
||||
|
@ -403,6 +413,7 @@ impl Presenter {
|
|||
if let Event::MouseMoved {
|
||||
position,
|
||||
left_mouse_down,
|
||||
..
|
||||
} = event
|
||||
{
|
||||
if !left_mouse_down {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue