{"action":"opened","issue":{"url":"https://api.github.com/repos/spritejs/spritejs/issues/13","repository_url":"https://api.github.com/repos/spritejs/spritejs","labels_url":"https://api.github.com/repos/spritejs/spritejs/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/spritejs/spritejs/issues/13/comments","events_url":"https://api.github.com/repos/spritejs/spritejs/issues/13/events","html_url":"https://github.com/spritejs/spritejs/issues/13","id":335682291,"node_id":"MDU6SXNzdWUzMzU2ODIyOTE=","number":13,"title":"快速移动丢帧怎么优化啊","user":{"login":"lunaticnotcrazy","id":21071051,"node_id":"MDQ6VXNlcjIxMDcxMDUx","avatar_url":"https://avatars3.githubusercontent.com/u/21071051?v=4","gravatar_id":"","url":"https://api.github.com/users/lunaticnotcrazy","html_url":"https://github.com/lunaticnotcrazy","followers_url":"https://api.github.com/users/lunaticnotcrazy/followers","following_url":"https://api.github.com/users/lunaticnotcrazy/following{/other_user}","gists_url":"https://api.github.com/users/lunaticnotcrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/lunaticnotcrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunaticnotcrazy/subscriptions","organizations_url":"https://api.github.com/users/lunaticnotcrazy/orgs","repos_url":"https://api.github.com/users/lunaticnotcrazy/repos","events_url":"https://api.github.com/users/lunaticnotcrazy/events{/privacy}","received_events_url":"https://api.github.com/users/lunaticnotcrazy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T06:54:51Z","updated_at":"2018-06-26T06:54:51Z","closed_at":null,"author_association":"NONE","body":"`p1.on('touchstart', evt => {\r\n      startX = evt.layerX\r\n      startY = evt.layerY\r\n      sprites = p1.attr('pos')\r\n    })\r\n    p1.on('touchmove', evt => {\r\n      const dx = evt.layerX - startX,\r\n        dy = evt.layerY - startY\r\n      p1.attr({\r\n        'pos': [sprites[0] + dx, sprites[1] + dy]\r\n      })\r\n    })`\r\n在touchstart 保存 起始位置 移动时监听 位置变化 \r\n精灵移动慢些还好 如果 移动快了 会出现丢帧 的 情况 \r\n有没有 办法 优化啊?"}}
{"actor":{"display_login":"lunaticnotcrazy"}}