Justify compass tremor
This commit is contained in:
parent
14f0bf55a7
commit
01589d9729
1 changed files with 1 additions and 1 deletions
|
@ -1116,7 +1116,7 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe
|
||||||
}
|
}
|
||||||
previousSensorValue = val;
|
previousSensorValue = val;
|
||||||
if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_COMPASS) {
|
if (settings.ROTATE_MAP.get() == OsmandSettings.ROTATE_MAP_COMPASS) {
|
||||||
if(Math.abs(MapUtils.degreesDiff(mapView.getRotate(), -val)) > 5) {
|
if(Math.abs(MapUtils.degreesDiff(mapView.getRotate(), -val)) > 15) {
|
||||||
mapView.setRotate(-val);
|
mapView.setRotate(-val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue