Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

JS Scroll Pane

I'm using JS Scroll Pane on a website.  The scroll works fine, gut If a place a menu that has named links, so you can jump to a specific part of the menu, the div moves up about 25 pixels and the slidebar disappears.

Here is a link:
goto:menu and you will see what I mean.

EXPERTS ONLY Please!
http://www.redthesteakhouse.com/development/index.php/miami
0
rgranlund
Asked:
rgranlund
  • 5
  • 4
1 Solution
 
Michel PlungjanIT ExpertCommented:
Can you change

$('a.panel').click(function () {
  $('a.panel').removeClass('selected');
  $(this).addClass('selected');
  current = $(this);
  $('#wrapper').scrollTo($(this).attr('href'), 750);            
  return false;
});

to

$('a.panel').click(function (e) {
  e.preventDefault();
  current.removeClass('selected');
  $(this).addClass('selected');
  current = $(this);
  $('#wrapper').scrollTo($(this).attr('href'), 750);            
});
0
 
rgranlundAuthor Commented:
@mplungjan that change cause the scrollto to not work at all.
0
 
Michel PlungjanIT ExpertCommented:
Any error in the console?
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
rgranlundAuthor Commented:
@mplungjan No errors in console.  Any other clues that may help?
0
 
Michel PlungjanIT ExpertCommented:
No, not really. Do you have a test page?
0
 
rgranlundAuthor Commented:
If you go to the link above, you can see the final issue.  It may just be a CSS issue.
0
 
Michel PlungjanIT ExpertCommented:
No longer jumping for me. The scroll bars disappear as usual though
0
 
rgranlundAuthor Commented:
Any ideas on how to keep it in place?
0
 
Michel PlungjanIT ExpertCommented:
Not without extensive debugging. I am alas off to bed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now