mirror of
https://gitlab.com/vyla-entertainment/TV.git
synced 2026-11-17 05:27:21 -05:00
ported sdk and this works
This commit is contained in:
@@ -103,4 +103,10 @@ document.addEventListener('mousemove', e => {
|
||||
document.addEventListener('click', e => {
|
||||
const f = e.target.closest('.f'); if (f) act(f)
|
||||
});
|
||||
ov.addEventListener('wheel', () => { }, { passive: true });
|
||||
ov.addEventListener('wheel', () => { }, { passive: true });
|
||||
|
||||
window.vylaBack = () => {
|
||||
const open = [pl, ov, lib, sr].some(e => e.classList.contains('show'));
|
||||
if (open) document.dispatchEvent(new KeyboardEvent('keydown', { keyCode: 4, key: 'GoBack', bubbles: true, cancelable: true }));
|
||||
return open;
|
||||
};
|
||||
Reference in New Issue
Block a user