theruther4d / Apparatus

:computer: A mac apparatus that let's you create and display widgets on your desktop
0 stars 0 forks source link

Add buffer to Blur #27

Closed theruther4d closed 8 years ago

theruther4d commented 8 years ago

When creating the desktop reference, we need to add 2 * the specified blur amount to the total size of the canvas. This way, when blurring things close to the edge of the screen, we won't get empty canvas.

theruther4d commented 8 years ago

This appears to be a bug with Chrome. Even when the <canvas> is bit enough and fully painted, being too close to the edge causes the fade-out on the right.

screen shot 2016-03-25 at 9 35 50 am In the image above, the canvas overlaps the screen to the right by another 20px, but it doesn't appear that way.