We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c707e commit b8289b8Copy full SHA for b8289b8
src/timeline/helpers/presenter.ts
@@ -1,6 +1,6 @@
1
export function calcTimeByPosition(yPosition: number, hourBlockHeight: number) {
2
const halfHourBlockHeight = hourBlockHeight / 2;
3
- let time = yPosition / halfHourBlockHeight / 2;
+ let time = yPosition / hourBlockHeight;
4
time = Math.round(time * 2) / 2;
5
6
const hour = Math.floor(time);
0 commit comments