CesiumGS / CesiumGS/cesium

Cesium registers mouse events it's not using

Open
#3,947 3 comments 0 reactions 0 assignees View on GitHub
category - camera type - cleanup
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

`ScreenSpaceEventHandler` registers a bunch of mouse event handlers when it is initialized regardless of whether Cesium is actually using these event handlers. This can cause weird side effects when Cesium is embedded in a page because it captures all mouse events that happen over the canvas.

There is also no easy way to remove a specific event handler.

Contributor guide

Open the contributing guide

Research direction

Start by locating the ScreenSpaceEventHandler implementation and reading how it initializes mouse event handlers. Trace how handlers capture canvas events and determine the existing event-registration API; done means unused handlers are not registered by default and a specific event handler can be removed without affecting others.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.