2

I have a large image that is within a smaller div. I need the image to pan, when clicked which i have done using ui scrollable.

I now need a similar panning function but when up, down, left or right navigation arrows is clicked as on google maps for example

how could I achieve this?

raleigh22
  • 23
  • 3

1 Answers1

1

I answered this question some time back... it only scrolls horizontally, but you should be able to adapt it to scroll vertically as well. It includes click and dragging the image using the mouse and using the mousewheel (for horizontal panning in the demo, I don't know what to tell you about getting the wheel to work in two dimensions).

Check out the demo

Community
  • 1
  • 1
Mottie
  • 84,355
  • 30
  • 126
  • 241