Make ol.DeviceOrientation dispatch change events
This commit is contained in:
@@ -140,6 +140,7 @@ ol.DeviceOrientation.prototype.orientationChange_ = function(browserEvent) {
|
|||||||
this.set(ol.DeviceOrientationProperty.GAMMA,
|
this.set(ol.DeviceOrientationProperty.GAMMA,
|
||||||
goog.math.toRadians(event.gamma));
|
goog.math.toRadians(event.gamma));
|
||||||
}
|
}
|
||||||
|
this.dispatchChangeEvent();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user