Skip to content

Commit

Permalink
Fix to minutesStep (mui#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
etairi authored and dmtrKovalenko committed Feb 9, 2019
1 parent d93cbfa commit a3138e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/_helpers/time-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export const getHours = (offsetX: number, offsetY: number, ampm: boolean) => {

export const getMinutes = (offsetX: number, offsetY: number, step = 1) => {
const angleStep = step * 6;
const { value } = getAngleValue(angleStep, offsetX, offsetY);
let { value } = getAngleValue(angleStep, offsetX, offsetY);
value = (value * step) % 60;

return value;
};
Expand Down

0 comments on commit a3138e8

Please sign in to comment.