createjs的touch事件

createjs的createjs.Touch.enable(stage)开启后,为什么只有mousedown和pressmove这两个事件起作用,其他事件都不起作用,怎么才能模拟原生的touchstart,touchmove,touchend事件?

阅读 6k
2 个回答

启动以后,事件应该修改为 stagemousedown stagemousemove stagemouseup 就可以生效 监听器在 stage上

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题