Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jScrollpane Chrome problem

in the "Known issues" at JScrollPane site, there's a:

In Webkit browsers CSS must be included before Javascript

i did that but sometimes im still getting (only in the first page, the index) some scroll problems, the scroll just disappears and after i refresh the page again its all ok

my browser cache is empty so is not that.. also i tried using:

$.ajaxSettings.cache = false;

the code im using for my scroll is similar to the ajax example:

$(document).ready(function() {
   var api = $('#mydiv').jScrollPane({ showArrows: false, reinitialiseOnImageLoad: true }).data('jsp');
   $('.a_link').live('click', function() { ... ....

how can i fix this?

like image 338
agg09 Avatar asked Jun 04 '26 20:06

agg09


1 Answers

reinitialiseOnImageLoad is a setting from version 1 of jScrollPane and no longer does anything. If your pane contains images you'll need to use one of these techniques:

http://jscrollpane.kelvinluck.com/image2.html

http://jscrollpane.kelvinluck.com/image.html

If that doesn't help please provide a URL or set up an example on http://www.jsfiddle.net/ (or tell me if you can reproduce in the demos on the jScrollPane site).

like image 116
vitch Avatar answered Jun 06 '26 12:06

vitch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!