[whatwg] Supporting scrollTop and scrollLeft on the Canvas element
Anne van Kesteren
annevk at opera.com
Sat Feb 4 00:30:27 PST 2012
On Tue, 31 Jan 2012 23:35:45 +0100, Charles Pritchard <chuck at jumis.com>
wrote:
> 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
http://annevankesteren.nl/
More information about the whatwg
mailing list