ci: browser compatibility linting (#19132)

This commit is contained in:
Zack Pollard 2025-06-13 15:54:59 +01:00 committed by GitHub
parent de756d9497
commit e2dfbd66c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 140 additions and 2 deletions

View file

@ -310,6 +310,7 @@
void onScrub?.(segmentDate!, scrollPercent, monthGroupPercentY);
};
/* eslint-disable tscompat/tscompat */
const getTouch = (event: TouchEvent) => {
if (event.touches.length === 1) {
return event.touches[0];
@ -354,6 +355,7 @@
isHover = false;
}
};
/* eslint-enable tscompat/tscompat */
onMount(() => {
document.addEventListener('touchmove', onTouchMove, true);
return () => {