Skip to content

Commit bd45b5a

Browse files
committed
fix(timeline): HiDPI position computation
1 parent 52d2d0a commit bd45b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-frontend/src/features/timeline/TimelineView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default defineComponent({
109109
* Get pixel position for giver time
110110
*/
111111
function getTimePosition (time: number) {
112-
return (time - nonReactiveState.minTime.value) / (nonReactiveState.endTime.value - nonReactiveState.startTime.value) * app.view.width / window.devicePixelRatio
112+
return (time - nonReactiveState.minTime.value) / (nonReactiveState.endTime.value - nonReactiveState.startTime.value) * app.view.width
113113
}
114114
115115
// Reset

0 commit comments

Comments
 (0)