Skip to content

Commit

Permalink
Merge pull request #8160 from bbbbx/fix-ScreenSpaceEventHandler
Browse files Browse the repository at this point in the history
remove useless argument of ScreenSpaceEventHandler
  • Loading branch information
Hannah authored Sep 18, 2019
2 parents e05f30c + 4f2af8d commit b5fec75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,5 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [Abu Darda](https://github.com/abuDarda97)
* [jony89](https://github.com/jony89)
* [TJKoury](https://github.com/tjkoury)
* [Qiming Zhang](https://github.com/bbbbx)

2 changes: 1 addition & 1 deletion Source/Scene/CameraEventAggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ define([
}
//>>includeEnd('debug');

this._eventHandler = new ScreenSpaceEventHandler(canvas, true);
this._eventHandler = new ScreenSpaceEventHandler(canvas);

this._update = {};
this._movement = {};
Expand Down
2 changes: 1 addition & 1 deletion Source/Scene/SceneTransitioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ define([

function createMorphHandler(transitioner, completeMorphFunction) {
if (transitioner._scene.completeMorphOnUserInput) {
transitioner._morphHandler = new ScreenSpaceEventHandler(transitioner._scene.canvas, false);
transitioner._morphHandler = new ScreenSpaceEventHandler(transitioner._scene.canvas);

var completeMorph = function() {
transitioner._morphCancelled = true;
Expand Down
2 changes: 1 addition & 1 deletion Source/Widgets/CesiumWidget/CesiumWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ define([
scene.terrainProvider = options.terrainProvider;
}

this._screenSpaceEventHandler = new ScreenSpaceEventHandler(canvas, false);
this._screenSpaceEventHandler = new ScreenSpaceEventHandler(canvas);

if (defined(options.sceneMode)) {
if (options.sceneMode === SceneMode.SCENE2D) {
Expand Down

0 comments on commit b5fec75

Please sign in to comment.