Remember me

auto scroll down on clicking album categories

7 years 5 months ago #1

  • shane's Avatar
  • shane
  • Posts: 30
Hi, when using album mode. when i click a category the page auto scrolls down to show top of category gallery title in the article.

How can i stop the browser auto scrolling down the page to display top of gallery (i previously thought this was to do with the page refresh feature, but i can confirm its off for each gallery)
Attachments:

7 years 5 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hello,

Here is solution, go to: components/com_bagallery/assets/js/ba-gallery.js
Lines: 351-354

Remove this code:
var position = gallery.offset().top;
    ba_jQuery('html, body').animate({
           scrollTop: position
      }, 'slow');

Regards,

7 years 5 months ago #3

  • shane's Avatar
  • shane
  • Posts: 30
Hi,

Thanks for quick reply, confirmed working solution.

Should I keep record of this change, in case of next update? Or will this be something added as an option in next version?

7 years 5 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 11342
This will not be added into the next version, you need to keep this solution

Regards,
Powered by Kunena Forum