Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #23

Open
zhaoyikai opened this issue Sep 30, 2019 · 4 comments
Open

[BUG] #23

zhaoyikai opened this issue Sep 30, 2019 · 4 comments

Comments

@zhaoyikai
Copy link

版本
如:0.8.3,Easycanvas的版本

影响平台
如:iOS真机/
touchstart 事件 与真实的精灵位置偏移半个精灵大小(比如我要触发某个精灵的touchstart 需要点击此精灵的右半部分 或者右侧超出半个精灵大小的区域,感觉判断触发事件的区域偏移了半个精灵大小)ios设备均是如此 安卓正常

问题描述
现象/JS报错信息/截图等

关键代码
例如有问题的Sprite的style属性等

其它
(问题补充)

@c-zhuo
Copy link
Owner

c-zhuo commented Sep 30, 2019

没有复现,方便贴一下具体的代码以及机型吗? @zhaoyikai

@80boys
Copy link

80boys commented Oct 21, 2019

IOS设备 都有此问题
怀疑是 页面渲染 更新问题

@c-zhuo
Copy link
Owner

c-zhuo commented Oct 21, 2019

@zhaoyikai @80boys
用ios设备直接打开 https://c-zhuo.github.io/easycanvas/#事件
运行demo的话正常吗?(点击字母G会有提示,辛苦帮忙看一下这个点击是否偏移)
我这边用ios设备运行这个demo是正常的,点击图片的外部无法触发事件,点击内部可以精确触发

@80boys
Copy link

80boys commented Jun 20, 2020

最终确定是 canvas 元素放在了 table里面导致的
直接放在body根元素下, 不会发生点击偏移的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants