- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 08 May 2012 20:56:28 -0400
- To: public-webapps@w3.org
On 5/8/12 8:30 PM, Gregg Tavares (勤) wrote: > AFAICT the resize event only fires on window. There have been proposals over the years to change that. > Imagine a relatively heavy to repaint WebComponent like one that draws > an representation of an audio wave. If that component is hidden behind > some other component it would be nice if it didn't re-draw itself. This seems like a use case for requestAnimationFrame's second argument, and browser quality-of-implementation issues. > Does a 'paint' event make sense? Possibly, depending on how it's defined; actually running arbitrary script during painting is pretty undesirable (e.g. ideally painting happens on a totally separate thread from script, and having to synchronize them is not particularly ideal). -Boris
Received on Wednesday, 9 May 2012 00:56:58 UTC