MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / handleScrollCommand

Function handleScrollCommand

popup-window/popup-window.user.js:670–676  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

668 updateMenuCommands()
669 }
670 function handleScrollCommand() {
671 if (config.closeOnScroll) {
672 window.addEventListener('scroll', closePopupOnScroll, { once: true })
673 } else {
674 window.removeEventListener('scroll', closePopupOnScroll)
675 }
676 }
677 function setWindowSize(dimension) {//!SECTION-已无实际意义,开启记录窗口位置后,哪里还需要手动配置.
678 const size = prompt(`${translate('setWindowSizeprompt')} (${dimension})`, config[dimension === 'width' ? 'windowWidth' : 'windowHeight'])
679 if (size !== null) {

Callers 1

toggleCloseOnScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected