diff --git a/CHANGES.md b/CHANGES.md index 9ad35a0d3f27..7d8d3f02822b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -35,6 +35,7 @@ Change Log * `HeadingPitchRoll.equals` and `HeadingPitchRoll.equalsEpsilon` functions for comparing two instances. * Added `Matrix3.fromHeadingPitchRoll` Computes a 3x3 rotation matrix from the provided headingPitchRoll. * `Transforms.headingPitchRollToFixedFrame` and `Transforms.headingPitchRollQuaternion` now take a `HeadingPitchRoll` object in addition to separate heading, pitch, and roll values. Separate values will be deprecated in 1.30. +* Prevent execution of default device/browser behaviour when handling "pinch" touch event/gesture. * Fixed a crash when zooming from touch input on viewer initialization. [#4177](https://github.com/AnalyticalGraphicsInc/cesium/issues/4177) ### 1.26 - 2016-10-03 diff --git a/Source/Core/ScreenSpaceEventHandler.js b/Source/Core/ScreenSpaceEventHandler.js index 9ef02c7defb6..7c702c2b7348 100644 --- a/Source/Core/ScreenSpaceEventHandler.js +++ b/Source/Core/ScreenSpaceEventHandler.js @@ -482,6 +482,10 @@ define([ Cartesian2.clone(positions.values[1], touch2StartEvent.position2); action(touch2StartEvent); + + // Touch-enabled devices, in particular iOS can have many default behaviours for + // "pinch" events, which can still be executed unless we prevent them here. + event.preventDefault(); } } }