mozilla/webmaker-core

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

Open

#49 opened on Jul 14, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (31 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (63 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide