PDA

View Full Version : Dragging to perform panning on a custom SVG map



Mike Stoddart
6 Apr 2011, 9:25 AM
I have a custom SVG map embedded in my HTML. I added a DIV over it so I can trap mouse events to simulate panning and zooming. Zooming seems to work ok for now. I'm trying to add drag support to this div, but what's the best solution? The drag/drop features in ExtJs appear to presume you're physically moving an element or dropping it onto another. While I want virtual "dragging". Any suggestions appreciated. Thanks