document.body.style.overflow = 'hidden';
// scroll
document.body.style.overflow = 'scroll';
const wheelCallback = (e)=> e.preventDefault();
document.getElementById('slider').addEventListener('wheel', wheelCallback);
// scroll
document.getElementById('slider').removeEventListener('wheel', wheelCallback);
@ted Hello
.function Test() {
this.abc = 123;
this.obj = {
try: function() { console.log(this.abc) }
}
return this
}
const t = new Test();
const obj = t.obj.try;
obj.apply(t)