soulwire / sketch.js

Cross-Platform JavaScript Creative Coding Framework
MIT License
4.09k stars 430 forks source link

Focus event #32

Closed nitriques closed 11 years ago

nitriques commented 11 years ago

Hi!

Your focus handling is nice, but it would be nice if we could turn this off. I am getting a real performance problem with this right now. Thanks.

nitriques commented 11 years ago

Ok sorry just saw this undocumented line https://github.com/soulwire/sketch.js/blob/master/js/sketch.js#L122

yckart commented 11 years ago

So, this issue can be closed then?

nitriques commented 11 years ago

:smile: I would still consider this a bug since it's not documented. Errors starts in the documentation.

You could add this line

autopause Default: true Whether to pause the animation on window blur and resume on focus

on this page https://github.com/soulwire/sketch.js/wiki/API

BTW, I edited that page, did you received the changes ?

nitriques commented 11 years ago

Big :+1: :+1: up for your project. BTW I commited it to http://cdnjs.com https://github.com/cdnjs/cdnjs/pull/1221