W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] Supporting scrollTop and scrollLeft on the Canvas element

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 04 Feb 2012 09:30:27 +0100
Message-ID: <op.v85a81n364w2qv@annevk-macbookpro.local>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:39 UTC