Merge "Use seconds in PostedScrollToRange. This reverts to the behavior before these types were changed to use BigInt." into main
diff --git a/ui/src/common/actions.ts b/ui/src/common/actions.ts
index b74e499..40fcef3 100644
--- a/ui/src/common/actions.ts
+++ b/ui/src/common/actions.ts
@@ -93,8 +93,8 @@
 }
 
 export interface PostedScrollToRange {
-  timeStart: time;
-  timeEnd: time;
+  timeStart: number;
+  timeEnd: number;
   viewPercentage?: number;
 }
 
diff --git a/ui/src/frontend/post_message_handler.ts b/ui/src/frontend/post_message_handler.ts
index 02f5daa..7a7addc 100644
--- a/ui/src/frontend/post_message_handler.ts
+++ b/ui/src/frontend/post_message_handler.ts
@@ -14,6 +14,7 @@
 
 import m from 'mithril';
 
+import {Time} from '../base/time';
 import {Actions, PostedScrollToRange, PostedTrace} from '../common/actions';
 import {showModal} from '../widgets/modal';
 
@@ -258,11 +259,9 @@
     }
     setTimeout(scrollToTimeRange, 200, postedScrollToRange, maxAttempts + 1);
   } else {
-    focusHorizontalRange(
-      postedScrollToRange.timeStart,
-      postedScrollToRange.timeEnd,
-      postedScrollToRange.viewPercentage,
-    );
+    const start = Time.fromSeconds(postedScrollToRange.timeStart);
+    const end = Time.fromSeconds(postedScrollToRange.timeEnd);
+    focusHorizontalRange(start, end, postedScrollToRange.viewPercentage);
   }
 }