Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js =================================================================== diff -u -r36633 -r36634 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 36633) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 36634) @@ -551,18 +551,29 @@ } } +function setTimeOutForAmount(row,type){ + if(type == 0){ + add(row,false); + }else { + reduce(row,false); + } +} + var downTimeOut = null; +var downTimes = 0; function mouseDown(row,type){ downTimeOut = setTimeout(function(){ - if(type == 0){ - add(row,false); + downTimes++ + if(downTimes > 20){ + setTimeOutForAmount(row,type) }else { - reduce(row,false); + mouseDown(row,type); } },50) } function mouseUp(){ + downTimes = 0; clearTimeout(downTimeOut); }