mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 01:11:07 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user