[plt-scheme] 'grabbing' the canvas/pasteboard? to scroll with the mouse pointer

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Thu Jan 17 10:44:20 EST 2008


I'm trying to implement a 'grab and scroll' method that lets the
canvas be moved by the mouse pointer.

I'm pretty happy with getting the location via   get-x  get-y and
but I'm trying to find an alternative to the 'scroll-to' to actually
do the moving?

(The idea is that while the left mouse button is down, the mouse
position is static with respect to the pasteboard position, but moves
with respect to the canvas.)



Stephen De Gabrielle
s.degabrielle at ucl.ac.uk
Telephone +44 (0)20 7679 5242 (x45242)
Mobile                  079 851 890 45
Project: Making Sense of Information (MaSI)

UCLIC: University College London Interaction Centre

Remax House - 31/32 Alfred Place
London - WC1E 7DP

Posted on the users mailing list.