From f9ebf3323decd03a66bfd58048be35695c2cadf8 Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Wed, 21 Oct 2015 14:47:06 -0400 Subject: [PATCH 1/2] Stop camera inertia when only moving small amounts. --- Source/Scene/ScreenSpaceCameraController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Scene/ScreenSpaceCameraController.js b/Source/Scene/ScreenSpaceCameraController.js index 049a2af4a85d..7d6e725eeb1f 100644 --- a/Source/Scene/ScreenSpaceCameraController.js +++ b/Source/Scene/ScreenSpaceCameraController.js @@ -369,7 +369,7 @@ define([ // If value from the decreasing exponential function is close to zero, // the end coordinates may be NaN. - if (isNaN(movementState.endPosition.x) || isNaN(movementState.endPosition.y) || sameMousePosition(movementState)) { + if (isNaN(movementState.endPosition.x) || isNaN(movementState.endPosition.y) || Cartesian2.distance(movementState.startPosition, movementState.endPosition) < 0.5) { movementState.active = false; return; } From ddc128666451fe1c49f315028bab9a211bba6dcc Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Wed, 21 Oct 2015 16:34:03 -0400 Subject: [PATCH 2/2] Update CHANGES.md. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index a9d885405199..92178799f7ee 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,7 @@ Change Log * Added `BoxOutlineGeometry.fromAxisAlignedBoundingBox` and `BoxGeometry.fromAxisAlignedBoundingBox` functions. * The WebGL setting of `failIfMajorPerformanceCaveat` now defaults to `false`, which is the official WebGL default. This improves compatibility with out-of-date drivers and remote desktop sessions. Cesium will run slower in these cases instead of simply failing to load. * Changed `Camera.setView` to take the same parameter options as `Camera.flyTo`. `options.destination` takes a rectangle, `options.orientation` works with heading/pitch/roll or direction/up, and `options.endTransform` was added. +* Fixed the issue where the camera inertia takes too long to finish causing the camera move events to fire after it appears to. [2839](https://github.com/AnalyticalGraphicsInc/cesium/issues/2839) ### 1.14 - 2015-10-01