JTCgood first issueonrampingtype - bug
Description
What happened?
Inconsistent behavior of ScreenSpaceEventHandler with MOUSE_MOVE event between Firefox and Chrome.
In Chrome when the mouse moves out of the canvas and over another element the MOUSE_MOVE events stop. In Firefox the MOUSE_MOVE events continue and can have coordinates outside the range of the canvas.
My expectation is that the MOUSE_MOVE event is only triggered while the pointer is moving over the canvas element, and is not fired when the pointer is outside of the canvas.
https://github.com/user-attachments/assets/f4259184-29e5-4175-971b-58578d1c65da
Reproduction steps
- Open the below sandcastle in Chrome.
- Open the Console tab
- Move the mouse over the Cesium viewer and then over the red element
- Note that the console logs stop when the pointer moves over the red element
- Open sandcastle in Firefox
- Open the Console tab
- Move the mouse over the Cesium viewer and then over the red element
- Note that the console logs continue while over the red element, and the y value is negative.
Sandcastle example
Environment
Browser:
- Chrome 131.0.6778.140
- Firefox 133.0.3 CesiumJS Version: 1.124 Operating System: Windows 11 Enterprise 22631.4602