From 6df7d5afdacacaefc3aa8d4a89922b43c89229a1 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 17 Mar 2014 09:05:49 +0100 Subject: [PATCH] Make ol.DeviceOrientation dispatch change events --- src/ol/deviceorientation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/deviceorientation.js b/src/ol/deviceorientation.js index aab556ebef..b7d87fe9b9 100644 --- a/src/ol/deviceorientation.js +++ b/src/ol/deviceorientation.js @@ -140,6 +140,7 @@ ol.DeviceOrientation.prototype.orientationChange_ = function(browserEvent) { this.set(ol.DeviceOrientationProperty.GAMMA, goog.math.toRadians(event.gamma)); } + this.dispatchChangeEvent(); };