How does JS add mouse click scroll bar listening?

window.onmousewheel = document.onmousewheel= function(){console.log(123)}

the above one can listen to the mouse wheel, but you can"t listen if you drag the scroll bar with the mouse. What can you do?

Feb.28,2021

$(document). Please (function (event) {

$(this).scrollTop()

});


listen for scroll events of window .
get scroll bar offset

window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop

for monitoring scroll bars, it is recommended that you read this listening scroll bars

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37c21-2c0d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37c21-2c0d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?