mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Make highlight bigger on timeline when skip to highlight button hovered
This commit is contained in:
@@ -302,8 +302,7 @@ function messageListener(request: Message, sender: unknown, sendResponse: (respo
|
||||
reskipSponsorTime(sponsorTimes.find((segment) => segment.UUID === request.UUID), true);
|
||||
break;
|
||||
case "selectSegment":
|
||||
selectedSegment = request.UUID;
|
||||
updatePreviewBar();
|
||||
selectSegment(request.UUID);
|
||||
break;
|
||||
case "submitVote":
|
||||
vote(request.type, request.UUID).then((response) => sendResponse(response));
|
||||
@@ -1071,6 +1070,7 @@ function setupSkipButtonControlBar() {
|
||||
openNotice: true,
|
||||
forceAutoSkip: true
|
||||
}),
|
||||
selectSegment,
|
||||
onMobileYouTube: isOnMobileYouTube()
|
||||
});
|
||||
}
|
||||
@@ -1349,6 +1349,11 @@ function updatePreviewBarPositionMobile(parent: HTMLElement) {
|
||||
}
|
||||
}
|
||||
|
||||
function selectSegment(UUID: SegmentUUID): void {
|
||||
selectedSegment = UUID;
|
||||
updatePreviewBar();
|
||||
}
|
||||
|
||||
function updatePreviewBar(): void {
|
||||
if (previewBar === null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user