imulus/retinajs — pull request #36 by chrisseaton (2012-07-30 11:30:13+00:00)
Title: Possible fix for #35

This is a possible fix for issue #35. If the current device is not retina, add a handler to onscroll to check if that has changed.

I can't see any other way around - there is no window moved or pixel ration changed event to listen for. Watching for scrolling does add some overhead, but only when the user is interacting with the page (so not eternally in the background), and it just checks a flag each time.