Skip to content

Reenabling events while cursor over mesh should fire pointerEnter #3537

@DennisSmolek

Description

@DennisSmolek

Raycasts are expensive while the camera is moving so I disable the events when I'm panning/moving

const { events } = useThree();

// In my function 
const disableEvents = () => {
    events.enabled = false;
}

const enableEvents = () => {
    events.enabled = true;
}

If I have a event that fires when the pointer enters (hover), like showing a cursor on the mesh when the controls stop and re-enable I would assume it would detect it.

What it does:

Nothing, luckily I also track pointerMove so I have a way around this.

Suggestion:

When events are enabled, fire a event without a mousemove

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv10

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions