Fix some drag and drop issues including the mouse cursor not being locked to pointer, tooltips being incorrect when a dragged tab is used, and some subscription leaks from panes
This commit is contained in:
parent
579c84b5e4
commit
3cc07c1099
7 changed files with 139 additions and 97 deletions
|
@ -381,7 +381,12 @@ impl Presenter {
|
|||
}
|
||||
}
|
||||
MouseRegionEvent::Click(e) => {
|
||||
if e.button == self.clicked_button.unwrap() {
|
||||
// Only raise click events if the released button is the same as the one stored
|
||||
if self
|
||||
.clicked_button
|
||||
.map(|clicked_button| clicked_button == e.button)
|
||||
.unwrap_or(false)
|
||||
{
|
||||
// Clear clicked regions and clicked button
|
||||
let clicked_regions =
|
||||
std::mem::replace(&mut self.clicked_regions, Vec::new());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue