Skip to content
Permalink
Browse files
Web Inspector: Timelines Tab: Screenshots: clicking on another screen…
…shot doesn't select it if there's already a selected screenshot

https://bugs.webkit.org/show_bug.cgi?id=240884

Reviewed by Patrick Angle.

* Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineOverviewGraph.js:
(WI.ScreenshotsTimelineOverviewGraph.prototype.layout):

Canonical link: https://commits.webkit.org/250938@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dcrousso committed May 24, 2022
1 parent b8342dc commit d031040eb8bb8c74d4237a8578c761a2dbf0752d
Showing 1 changed file with 3 additions and 1 deletion.
@@ -72,8 +72,10 @@ WI.ScreenshotsTimelineOverviewGraph = class ScreenshotsTimelineOverviewGraph ext

imageElement.style.left = (record.startTime - this.startTime) / secondsPerPixel + "px";
imageElement.addEventListener("click", (event) => {
// Ensure that the container "click" listener added by `WI.TimelineOverview` isn't called.
event.__timelineRecordClickEventHandled = true;

this.selectedRecord = record;
event.stopPropagation();
});
}
}

0 comments on commit d031040

Please sign in to comment.