Skip to content

Commit

Permalink
Merge pull request #6999 from AnalyticalGraphicsInc/dont-point
Browse files Browse the repository at this point in the history
Disable PointerEvents in Firefox until they work.
  • Loading branch information
ggetz authored Sep 4, 2018
2 parents 764591a + 7da26d6 commit 36e42b7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Change Log
* Added `heightReference` to `BoxGraphics`, `CylinderGraphics` and `EllipsoidGraphics`, which can be used to clamp these entity types to terrain [#6932](https://github.com/AnalyticalGraphicsInc/cesium/pull/6932)

##### Fixes :wrench:
* Fixed Firefox camera control issues with mouse and touch events. [#6372](https://github.com/AnalyticalGraphicsInc/cesium/issues/6372)
* Several performance improvements and fixes to the 3D Tiles traversal code. [#6390](https://github.com/AnalyticalGraphicsInc/cesium/pull/6390)
* Improved load performance when `skipLevelOfDetail` is false.
* Fixed a bug that caused some skipped tiles to load when `skipLevelOfDetail` is true.
Expand Down
4 changes: 3 additions & 1 deletion Source/Core/FeatureDetection.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ define([
//we still need to use it if it exists in order to support browsers
//that rely on it, such as the Windows WebBrowser control which defines
//PointerEvent but sets navigator.pointerEnabled to false.
hasPointerEvents = typeof PointerEvent !== 'undefined' && (!defined(theNavigator.pointerEnabled) || theNavigator.pointerEnabled);

//Firefox disabled because of https://github.com/AnalyticalGraphicsInc/cesium/issues/6372
hasPointerEvents = !isFirefox() && typeof PointerEvent !== 'undefined' && (!defined(theNavigator.pointerEnabled) || theNavigator.pointerEnabled);
}
return hasPointerEvents;
}
Expand Down
6 changes: 0 additions & 6 deletions Specs/Core/ScreenSpaceEventHandlerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ defineSuite([

beforeAll(function(){
usePointerEvents = FeatureDetection.supportsPointerEvents();

//See https://github.com/AnalyticalGraphicsInc/cesium/issues/6539
if (FeatureDetection.isFirefox()) {
usePointerEvents = false;
spyOn(FeatureDetection, 'supportsPointerEvents').and.returnValue(false);
}
});

beforeEach(function() {
Expand Down
6 changes: 0 additions & 6 deletions Specs/Scene/CameraEventAggregatorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ defineSuite([

beforeAll(function() {
usePointerEvents = FeatureDetection.supportsPointerEvents();

//See https://github.com/AnalyticalGraphicsInc/cesium/issues/6539
if (FeatureDetection.isFirefox()) {
usePointerEvents = false;
spyOn(FeatureDetection, 'supportsPointerEvents').and.returnValue(false);
}
canvas = createCanvas(1024, 768);
});

Expand Down
6 changes: 0 additions & 6 deletions Specs/Scene/ScreenSpaceCameraControllerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ defineSuite([
}
beforeAll(function() {
usePointerEvents = FeatureDetection.supportsPointerEvents();

//See https://github.com/AnalyticalGraphicsInc/cesium/issues/6539
if (FeatureDetection.isFirefox()) {
usePointerEvents = false;
spyOn(FeatureDetection, 'supportsPointerEvents').and.returnValue(false);
}
canvas = createCanvas(1024, 768);
});

Expand Down

0 comments on commit 36e42b7

Please sign in to comment.