Skip to content

Commit b8289b8

Browse files
Update src/timeline/helpers/presenter.ts
Co-authored-by: Lidor Dafna <[email protected]>
1 parent 50c707e commit b8289b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeline/helpers/presenter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function calcTimeByPosition(yPosition: number, hourBlockHeight: number) {
22
const halfHourBlockHeight = hourBlockHeight / 2;
3-
let time = yPosition / halfHourBlockHeight / 2;
3+
let time = yPosition / hourBlockHeight;
44
time = Math.round(time * 2) / 2;
55

66
const hour = Math.floor(time);

0 commit comments

Comments
 (0)