Give the MouseEventHandlers for each tab bar their own id
This fixes a beachball where we oscillate back and forth between hovered and unhovered due to confusing two different tab bars as the same tab bar.
This commit is contained in:
parent
595dbd44ae
commit
0ff87e603f
2 changed files with 5 additions and 1 deletions
|
@ -2418,6 +2418,10 @@ impl<'a, T: View> RenderContext<'a, T> {
|
|||
pub fn handle(&self) -> WeakViewHandle<T> {
|
||||
WeakViewHandle::new(self.window_id, self.view_id)
|
||||
}
|
||||
|
||||
pub fn view_id(&self) -> usize {
|
||||
self.view_id
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<AppContext> for &AppContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue