fix(deps): update typescript-projects (#24163)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2025-11-25 17:26:36 +00:00
committed by GitHub
parent db15e5e423
commit 3d6c26350a
7 changed files with 1948 additions and 1657 deletions

View File

@@ -351,7 +351,10 @@
void onScrub?.(scrubData);
};
const getTouch = (event: TouchEvent) => {
// desktop safari does not support this since Apple does not have desktop touch devices
// eslint-disable-next-line tscompat/tscompat
if (event.touches.length === 1) {
// eslint-disable-next-line tscompat/tscompat
return event.touches[0];
}
return null;
@@ -362,6 +365,8 @@
isHover = false;
return;
}
// desktop safari does not support this since Apple does not have desktop touch devices
// eslint-disable-next-line tscompat/tscompat
const elements = document.elementsFromPoint(touch.clientX, touch.clientY);
const isHoverScrollbar =
findElementBestY(elements, 0, 'scrubber', 'time-label', 'lead-in', 'lead-out') !== undefined;
@@ -370,6 +375,7 @@
if (isHoverScrollbar) {
handleMouseEvent({
// eslint-disable-next-line tscompat/tscompat
clientY: touch.clientY,
isDragging: true,
});
@@ -388,6 +394,7 @@
const touch = getTouch(event);
if (touch && isDragging) {
handleMouseEvent({
// eslint-disable-next-line tscompat/tscompat
clientY: touch.clientY,
});
} else {