Skip to content

Reenabling events while cursor over mesh should fire pointerEnter #3537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DennisSmolek opened this issue May 29, 2025 · 0 comments
Open

Comments

@DennisSmolek
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant