Merge pull request #1865 from fredj/device-orientation

Make ol.DeviceOrientation dispatch change events
This commit is contained in:
Frédéric Junod
2014-03-17 09:34:29 +01:00
2 changed files with 6 additions and 6 deletions

View File

@@ -140,6 +140,7 @@ ol.DeviceOrientation.prototype.orientationChange_ = function(browserEvent) {
this.set(ol.DeviceOrientationProperty.GAMMA,
goog.math.toRadians(event.gamma));
}
this.dispatchChangeEvent();
};