Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Inspector: When selecting timeline records from a coalesced recor…
…d bar, select the record nearest the cursor, not the first record in the group https://bugs.webkit.org/show_bug.cgi?id=236050 rdar://78629845 Reviewed by Devin Rousso. We now attempt to find the closest possible record to the location on the timeline the record bar was clicked. If we can provide a record that starts before and end after the point that was clicked we return that record, otherwise falling back to the record the either started or ended closest to the point that was clicked. This should make it easier to jump to records the represent a larger portion of time, like a slow paint, without having to zoom all the way in on the timeline. Records with children are not considered since the children records will be the next records checked, and we want to have selection be as targeted as possible. * Source/WebInspectorUI/UserInterface/Views/TimelineOverviewGraph.js: (WI.TimelineOverviewGraph.prototype.timelineRecordBarClicked): * Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.js: (WI.TimelineRecordBar): (WI.TimelineRecordBar.prototype.refresh): (WI.TimelineRecordBar.prototype._handleClick): Canonical link: https://commits.webkit.org/254056@main
- Loading branch information
1 parent
ac0d3d8
commit e9a80fb
Showing
2 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters