MCPcopy Create free account
hub / github.com/hoothin/UserScripts / checkStop

Function checkStop

Picviewer CE+/dist.user.js:20572–20578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20570 scroll();
20571
20572 var checkStop=function(){//当手柄到达点击位置时停止
20573 var handleOffset=parseFloat(handle.style[pro[0]]);
20574 if(clickOffset >= handleOffset && clickOffset <= (handleOffset + handleSize)){
20575 clearTimeout(scrollTimeout);
20576 clearInterval(scrollInterval);
20577 };
20578 };
20579
20580
20581 var scrollInterval;

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected