style(item): fixes "degrees" typo

This commit is contained in:
Manu Mtz.-Almeida
2016-07-14 15:04:15 +02:00
parent a2a71893e4
commit fd54f44a66

View File

@@ -187,7 +187,6 @@ class AngleRecognizer {
}
}
const degresToRadians = Math.PI / 180;
class PanXRecognizer extends AngleRecognizer {
private _isPanX: boolean;
@@ -195,7 +194,7 @@ class PanXRecognizer extends AngleRecognizer {
constructor(threshold: number, maxAngle: number) {
super(threshold);
this.maxAngle = maxAngle * degresToRadians;
this.maxAngle = maxAngle * (Math.PI / 180);
}
start(coord: Coordinates) {