-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Mouse up/move events #2408
Mouse up/move events #2408
Conversation
… the document from the ScreenSpaceCameraController to the CameraEventAggregator.
Conflicts: CHANGES.md
@@ -14,6 +14,7 @@ Change Log | |||
* `Camera.setPositionCartographic` was deprecated in Cesium 1.6. It will be removed in Cesium 1.7. Use `Camera.setView`. | |||
* `PolygonGraphics.positions` was deprecated and replaced with `PolygonGraphics.hierarchy`, whose value is a `PolygonHierarchy` instead of an array of positions. `PolygonGraphics.positions` will be removed in Cesium 1.8. | |||
* The `Model.readyToRender` event was deprecated and will be removed in Cesium 1.9. Use the new `Model.readyPromise` instead. | |||
* The `mouseMoveOnDocument` parameter to the `ScreenSpaceEventHandler` constructor was deprecated in Cesium 1.6. It will be removed in Cesium 1.7. `ScreenSpaceEventHandler` will be constructed as if `mouseMoveOnDocument` is `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submit an issue for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, is there anything else we want to say in CHANGE.md?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I can think of. Did you have something in mind?
Doesn't this reintroduce the Sandcastle issue where the globe stops spinning when the mouse moves outside the canvas (as opposed to when Cesium takes up the entire document)? |
That has always been the case. You can try it in the Sandcastle in master. I thought we had an issue for it, but I couldn't find it. |
Yes, indeed. |
…entHandler to listen on the document for pointer up and move events.
…entHandler to listen on the document for pointer up and move events.
Deprecates logic in
ScreenSpaceEventHandler
to add mouse/pointer/touch move and up event listeners to the document instead of the given element. Adds it toCameraEventAggregator
.