wScratchPad在手机上特别卡怎么办?在chrome中还好些,在firefox和手机上就特别卡,把realtime设置成false,也不卡了,但是scratchMove 中percent就不生效了
$('#maskBoard').wScratchPad({
size:50,
fg : '/1.jpg', // Background (image path or hex color).
bg : '/2.jpg', // Foreground (image path or hex color).
realtime : true, // Calculates percentage in realitime.
scratchMove : function(e, percent){
if(percent>=30){
alert('我要干点其他事儿了');
}
console.log(percent);
},
scratchUp:function(){
}
});