add ie demo

This commit is contained in:
Harvey committed 2021-12-06 09:35:30 +08:00
1 parent a3a3f01bcc
commit d536452067
1 file changed
+6
@@ -14,4 +14,10 @@ export default function resizeInit(art, events) {
events.proxy(window, ['orientationchange', 'resize'], () => {
resizeFn();
});
if (screen && screen.orientation && screen.orientation.onchange) {
events.proxy(screen.orientation, 'change', () => {
resizeFn();
});
}
}