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 c38b98a commit 52d167cCopy full SHA for 52d167c
1 file changed
editor/src/messages/input_mapper/utility_types/misc.rs
@@ -139,7 +139,8 @@ impl FrameTimeInfo {
139
}
140
141
pub fn advance_timestamp(&mut self, next_timestamp: Duration) {
142
- debug_assert!(next_timestamp >= self.timestamp);
+ // Guard against non-monotonic timestamps from the browser (Keavon observed this once in Chrome)
143
+ let next_timestamp = next_timestamp.max(self.timestamp);
144
145
self.prev_timestamp = Some(self.timestamp);
146
self.timestamp = next_timestamp;
0 commit comments