feat: Add getRect function to utils and update player and control modules to use it

This commit is contained in:
Harvey Zack committed 2024-06-08 12:17:45 +08:00
1 parent 2721f61b41
commit 232b8a3e17
10 files changed
+36 -27

No files matched your search

+4
View File
@@ -113,3 +113,7 @@ export function supportsFlex() {
div.style.display = 'flex';
return div.style.display === 'flex';
}
export function getRect(el) {
return el.getBoundingClientRect();
}