[whatwg] Supporting scrollTop and scrollLeft on the Canvas element

On Tue, 31 Jan 2012 23:35:45 +0100, Charles Pritchard <chuck at jumis.com>  
> I'd like to see scrollTop and scrollLeft supported for the Canvas  
> element. They would simply fire an onscroll event on the element, and do  
> nothing else.
> Many Canvas UIs use only one visible canvas layer, or otherwise, one  
> main canvas layer.

That would require special casing <canvas> in  
http://dev.w3.org/csswg/cssom-view/#scroll-an-element which I'm not sure  
is a good idea. Why don't you just dispatch a synthetic scroll event?

Anne van Kesteren

Received on Saturday, 4 February 2012 00:30:27 UTC