mozilla/webmaker-core

Text and element selection border get blurry when element is scaled to large size

开放

#49 创建于 2015年7月14日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (31 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (63 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

This issue has been migrated from mozilla/webmaker-android#1638.

It was originally written by flukeout on Mon May 04 2015 and had the following description:

When you deselect and reselect the scaled text element, the border comes back crisp. I think we should take a cue from this and try redrawing the element and border at the end of a scale gesture, this will probably fix the blurriness.

Apparently this has to do with the fact that the transform is hardware accelerated, and the text is being treated like a bitmap. Maybe just hiding & showing the text after the scale will force it to re-render and look sharp.

Alternatively, we can try to turn off the hardware acceleration for this by making sure we're not using a 3d transform? Not sure.

**@**Pomax Let me know what you think or if you want me to do some more research etc.

贡献者指南