Skip to content

OrbitControls can send nested start and end events #22658

@nkallen

Description

@nkallen

Describe the bug

OrbitControls is an EventDispatcher. It sends 'start', 'change', and 'end' events. If you mouse wheel while rotating it will send nested 'start' and 'end' events. This is (probably) incorrect, because clients relying on this code to e.g., enable/disable functionality in their app will incorrectly reenable/re-disable things.

To Reproduce

  1. Add an event listener for 'start' and 'end' events
  2. Rotate, holding down the mouse button (default: left)
  3. While holding down the button use the mouse wheel

Live example

Expected behavior

It should send change events during mouse wheel, not start stop

Screenshots

If applicable, add screenshots to help explain your problem (drag and drop the image).
Screenshot 2021-10-08 at 12 48 15

Platform:

  • Device: [Desktop, Mobile]
  • OS: [Windows, MacOS, Linux, Android, iOS]
  • Browser: [Chrome, Firefox, Safari, Edge]
  • Three.js version: [dev, r???]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions