{"action":"closed","issue":{"url":"https://api.github.com/repos/malihu/thumbnail-scroller/issues/4","labels_url":"https://api.github.com/repos/malihu/thumbnail-scroller/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/malihu/thumbnail-scroller/issues/4/comments","events_url":"https://api.github.com/repos/malihu/thumbnail-scroller/issues/4/events","html_url":"https://github.com/malihu/thumbnail-scroller/issues/4","id":82855984,"number":4,"title":"Scrolling to the center onInit","user":{"login":"Erftralle","id":10573985,"avatar_url":"https://avatars.githubusercontent.com/u/10573985?v=3","gravatar_id":"","url":"https://api.github.com/users/Erftralle","html_url":"https://github.com/Erftralle","followers_url":"https://api.github.com/users/Erftralle/followers","following_url":"https://api.github.com/users/Erftralle/following{/other_user}","gists_url":"https://api.github.com/users/Erftralle/gists{/gist_id}","starred_url":"https://api.github.com/users/Erftralle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erftralle/subscriptions","organizations_url":"https://api.github.com/users/Erftralle/orgs","repos_url":"https://api.github.com/users/Erftralle/repos","events_url":"https://api.github.com/users/Erftralle/events{/privacy}","received_events_url":"https://api.github.com/users/Erftralle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-30T16:37:23Z","updated_at":"2015-06-03T17:51:21Z","closed_at":"2015-06-03T17:51:21Z","body":"Hi,\r\nfirst off all I want to say thank you for sharing this great piece of software. \r\nIt was exactly what I was looking for to replace the old non responsive thumbnail scroller I am actually using in my JoomGallery gallery (you can see a demo of the old thumbnail scroller [here](http://www.en.joomgallery.net/demo/aircrafts/zurich/zurich-61.html#joomimg) on the demo page of JoomGallery).\r\n\r\nOne thing I couldn't do like it is done in the old software, is the following:\r\n\r\nBy using\r\n```\r\n      <script>\r\n        (function($){\r\n          $(window).load(function(){\r\n            $(\"#motioncontainer\").mThumbnailScroller({\r\n              axis:\"x\",\r\n              type:\"hover-precise\",\r\n              callbacks:{\r\n                onInit:function(){\r\n                  $(\"#motioncontainer\").mThumbnailScroller(\"scrollTo\", \"#jg_mini_akt\");\r\n                }\r\n              },\r\n            });\r\n          });\r\n        })(jQuery);\r\n      </script>\r\n```\r\nI scroll to a certain thumbnail ```onInit``` and I would like to have it positioned centered in the container (as far as it is possible). At the moment it is positioned as far as possible to the left."}}