mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
add ie demo
This commit is contained in:
1 parent
a3a3f01bcc
commit
d536452067
1 file changed
+6
@@ -14,4 +14,10 @@ export default function resizeInit(art, events) {
|
|||||||
events.proxy(window, ['orientationchange', 'resize'], () => {
|
events.proxy(window, ['orientationchange', 'resize'], () => {
|
||||||
resizeFn();
|
resizeFn();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (screen && screen.orientation && screen.orientation.onchange) {
|
||||||
|
events.proxy(screen.orientation, 'change', () => {
|
||||||
|
resizeFn();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user