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

Function moveHandler

Picviewer CE+/dist.user.js:15799–15812  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

15797
15798 var moveFiredCount=0;
15799 var moveHandler=function(e){
15800 e.preventDefault();
15801 e.stopPropagation();
15802 moveFiredCount++;
15803 if(moveFiredCount<2){//给个缓冲。。
15804 return;
15805 };
15806 imgDraged=true;
15807 if(bigger){
15808 target.style.cursor= support.cssCursorValue.grabbing || 'pointer';
15809 self.imgScrollbarV.scroll(oScroll.top-(e.clientY-oClient.y));
15810 self.imgScrollbarH.scroll(oScroll.left-(e.clientX-oClient.x));
15811 };
15812 };
15813
15814 var upHandler=function(){
15815 target.style.cursor='';

Callers

nothing calls this directly

Calls 3

rotateFunction · 0.70
zoomFunction · 0.70
setViewRangePositionFunction · 0.70

Tested by

no test coverage detected