mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-16 15:11:25 +00:00
Fix bug in drag move dispatch
co-authored-by: conrad <conrad@zed.dev>
This commit is contained in:
parent
139fe7c1f1
commit
4c63c74f92
1 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@ pub trait InteractiveElement: Sized {
|
|||
listener: impl Fn(&DragMoveEvent<T>, &mut WindowContext) + 'static,
|
||||
) -> Self
|
||||
where
|
||||
T: Render,
|
||||
T: 'static,
|
||||
{
|
||||
self.interactivity().mouse_move_listeners.push(Box::new(
|
||||
move |event, bounds, phase, cx| {
|
||||
|
@ -223,7 +223,7 @@ pub trait InteractiveElement: Sized {
|
|||
if cx
|
||||
.active_drag
|
||||
.as_ref()
|
||||
.is_some_and(|drag| drag.value.type_id() == TypeId::of::<T>())
|
||||
.is_some_and(|drag| (*drag.value).type_id() == TypeId::of::<T>())
|
||||
{
|
||||
(listener)(
|
||||
&DragMoveEvent {
|
||||
|
|
Loading…
Reference in a new issue