提交 182a5e14 编写于 作者: 郭胜强

fix: 解决canvas组件绘制后某些情况被清空的问题

build uni-h5 0.0.9
上级 60d96d9c
因为 它太大了无法显示 source diff 。你可以改为 查看blob
{
"name": "@dcloudio/uni-h5",
"version": "0.0.8",
"version": "0.0.9",
"description": "uni-app h5",
"main": "dist/index.umd.min.js",
"scripts": {
......
......@@ -68,8 +68,11 @@ export default {
}
},
_resize ({ width, height }) {
this.$refs.canvas.width = width
this.$refs.canvas.height = height
var canvas = this.$refs.canvas
if (canvas.width !== width || canvas.height !== height) {
canvas.width = width
canvas.height = height
}
},
_touchmove (event) {
if (this.disableScroll) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册