mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Insert hitbox when an interactive element can be scrolled (#9216)
Fixes https://github.com/zed-industries/zed/issues/9199 Release Notes: - N/A
This commit is contained in:
parent
d362588055
commit
0a341261d0
2 changed files with 2 additions and 1 deletions
|
@ -1306,6 +1306,7 @@ impl Interactivity {
|
|||
|| self.group.is_some()
|
||||
|| self.has_hover_styles()
|
||||
|| self.has_mouse_listeners()
|
||||
|| self.scroll_offset.is_some()
|
||||
{
|
||||
Some(cx.insert_hitbox(bounds, self.occlude_mouse))
|
||||
} else {
|
||||
|
|
|
@ -61,7 +61,7 @@ impl HitboxId {
|
|||
|
||||
/// A rectangular region that potentially blocks hitboxes inserted prior.
|
||||
/// See [ElementContext::insert_hitbox] for more details.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Deref)]
|
||||
#[derive(Clone, Debug, Deref)]
|
||||
pub struct Hitbox {
|
||||
/// A unique identifier for the hitbox
|
||||
pub id: HitboxId,
|
||||
|
|
Loading…
Reference in a new issue