mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
style(menu): typo (degress -> degrees)
This commit is contained in:
@ -4,8 +4,8 @@ import { SlideData } from '../../gestures/slide-gesture';
|
|||||||
import { assign } from '../../util/util';
|
import { assign } from '../../util/util';
|
||||||
import { GestureDelegate, GesturePriority } from '../../gestures/gesture-controller';
|
import { GestureDelegate, GesturePriority } from '../../gestures/gesture-controller';
|
||||||
|
|
||||||
const DEGRESS_TO_RADIANS = Math.PI / 180;
|
const DEGREES_TO_RADIANS = Math.PI / 180;
|
||||||
const MIN_COSINE = Math.cos(40 * DEGRESS_TO_RADIANS);
|
const MIN_COSINE = Math.cos(40 * DEGREES_TO_RADIANS);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gesture attached to the content which the menu is assigned to
|
* Gesture attached to the content which the menu is assigned to
|
||||||
@ -53,7 +53,7 @@ export class MenuContentGesture extends SlideEdgeGesture {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let cosine = Math.cos(ev.angle * DEGRESS_TO_RADIANS);
|
let cosine = Math.cos(ev.angle * DEGREES_TO_RADIANS);
|
||||||
if (menu.side === 'right') {
|
if (menu.side === 'right') {
|
||||||
if (cosine < -MIN_COSINE) {
|
if (cosine < -MIN_COSINE) {
|
||||||
return super.canStart(ev);
|
return super.canStart(ev);
|
||||||
|
Reference in New Issue
Block a user