因为工作涉及到教育行业,无法避免部分学校使用的是windows触屏,开发过程中发现在使用鼠标操作时没有任何问题,但触摸屏在进行拖拽时发现无法监听pressmove
createjs.Touch.enable =
function
(stage, singleTouch, allowDefault) {
if
(stage.__touch) {
return
true
; }
stage.__touch = {pointers:{}, multitouch:!singleTouch, preventDefault:!allowDefault, count:0};
createjs.Touch._IOS_enable(stage);
return
true
;
};
createjs.Touch.enable(stage);