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 #3

Closed
wkjjkw opened this issue Feb 22, 2019 · 7 comments
Closed

组件在火狐浏览器有bug #3

wkjjkw opened this issue Feb 22, 2019 · 7 comments

Comments

@wkjjkw
Copy link

wkjjkw commented Feb 22, 2019

火狐浏览器下用来填充的小图有背景。

@javaLuo
Copy link
Owner

javaLuo commented Feb 22, 2019

ok ,我来搞定

@javaLuo
Copy link
Owner

javaLuo commented Feb 22, 2019

hi,貌似我没发现问题额。
如果你说的是拼图缺失的那一块地方有隐隐约约的图案的话,那里是故意的,用了一点透明度

@wkjjkw
Copy link
Author

wkjjkw commented Feb 22, 2019

tim 20190222185407

@javaLuo
Copy link
Owner

javaLuo commented Feb 22, 2019

OK, 我看到了,我来处理

@javaLuo
Copy link
Owner

javaLuo commented Feb 22, 2019

hi,我更新了1.0.4,搞好了。

问题的原因:
windows下Firefox的canvas中如果先设置了ctx.shadowBlur绘制外阴影,再ctx.drawImage()绘制图片,此时绘制的图片会无视ctx.clip()裁剪区域

我猜这是windows版Firefox的BUG,因为MAC的Firefox正常。

感谢指出问题,3Q

@wkjjkw
Copy link
Author

wkjjkw commented Feb 25, 2019

好的,解决了。谢谢!

@javaLuo javaLuo closed this as completed Feb 25, 2019
@javaLuo
Copy link
Owner

javaLuo commented Feb 25, 2019

貌似你之前还说了个 IE不支持includes来着
我明天还是改成indexOf吧..

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

2 participants