[html5] Dragging an image across a canvas

Zachary Ozer zach at longtailvideo.com
Wed Jul 21 07:26:30 PDT 2010


Works for me on FF for Mac.

One thing: might be nice if it centers in the frame when you zoom to
the point that there's a margin, but no biggie.
--
Zachary Ozer
Developer, LongTail Video

w: longtailvideo.com • e: zach at longtailvideo.com • p: 212.244.0140 •
f: 212.656.1335
JW Player  |  Bits on the Run  |  AdSolution



On Tue, Jul 20, 2010 at 10:17 PM, J David Eisenberg
<jdavid.eisenberg at gmail.com> wrote:
> At http://langintro.com/metropath5/test.html, I have a demo of an
> image that is larger than the canvas; you can drag to see portions of
> it. It works great and pans smoothly.
>
> If you click the "-" icon at the lower right of the image, the image
> is reduced (by setting a multiplication/divison factor between the
> image and the canvas). In Firefox 3.6.4 on Fedora 13 Linux, when I
> drag the smaller map, the image does not update until I release the
> mouse. Using Google chrome on the same system, it still scrolls
> smoothly.
>
> I'm guessing this a JavaScript performance issue, but I may also be
> missing something in the algorithm. Comments/opinions welcomed.
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
>



More information about the Help mailing list