Skip to content

Conversation

@arai-a
Copy link
Contributor

@arai-a arai-a commented Dec 18, 2025

Fixed #5723

This makes the uncommitted range in the FilterNavigatorBar an input field instead of a plain text,
so that the range can be directly modified, which allows selecting the same range between two profiles loaded in different tabs, for comparison purpose.

  • The input field accepts "s", "ms", and "us" units, with floating point number
    • If there's no unit, it's treated as "ms"
  • The modification to the input field is immediately reflected to the selection in the timeline
  • The modification to the selection in the timeline is immediately reflected to the input field
  • While the input field has focus, it shows raw input value, which can also be a temporary invalid value, or something that's different than the formatted value
  • Once the input field lost the focus, the actual formatted range is shown
    • The onSelectionMove part is added in order to blur the input field when the selection in the timeline is modified, which by default doesn't take any focus
  • Completely invalid value (which parseFloat returns NaN) is ignored and the previous value is kept
  • If the duration exceeds the current committed range, it's cropped at the end of the range
  • Hitting enter key in the input field commits the range
uncommiitted-range-input

@canova canova self-requested a review December 23, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the selection duration directly editable as a text

1 participant