feat: add window bind devicePixelRatio support

pull/8534/head
xxkl1 3 years ago
parent ff3404442c
commit 958fd8c003

@ -17,6 +17,7 @@ const valid_bindings = [
'outerHeight', 'outerHeight',
'scrollX', 'scrollX',
'scrollY', 'scrollY',
'devicePixelRatio',
'online' 'online'
]; ];

@ -14,6 +14,7 @@ const associated_events = {
innerHeight: 'resize', innerHeight: 'resize',
outerWidth: 'resize', outerWidth: 'resize',
outerHeight: 'resize', outerHeight: 'resize',
devicePixelRatio: 'resize',
scrollX: 'scroll', scrollX: 'scroll',
scrollY: 'scroll' scrollY: 'scroll'
@ -29,6 +30,7 @@ const readonly = new Set([
'innerHeight', 'innerHeight',
'outerWidth', 'outerWidth',
'outerHeight', 'outerHeight',
'devicePixelRatio',
'online' 'online'
]); ]);

Loading…
Cancel
Save