ScrollTo in scrollview

ScrollTo in scrollview

Hi,

For realization of photogallery I fill via javascript a div (data-scroll="y") with inage filled images.

On click on a marker in a google map I want to jump to the related image.
  1. var seekPanoGallery = function(ndx) {
        var elem = $('#page_panoramioimage div[data-role="content"] .inner');
        var h = $('#page div[data-role="content"]').height()-$('#page div[data-role="header"]').height();
        var offset = -ndx*h;
        elem.css('-webkit-transform','translate3d(0px,'+offset+'px, 0px)')
      } 




It works fine. http://m2.vladi.de/ (go to island views)

But after moving the image => the gallery jump to the first image.  I dont no why ;-((

Rainer