Problem with jScrollpane Chrome

in the Known Issues section of the JScrollPane website: a:

In browsers Webkit CSS must be included in Javascript

I did this, but sometimes I still get (only on the first page, index) some problems with scrolling, scrolling just disappears, and after refreshing the page everything is OK again

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

$.ajaxSettings.cache = false;

the im code used for my scrolling 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?

+3
source share
1 answer

reinitialiseOnImageLoadis a parameter from jScrollPane version 1 and does nothing else. If your panel contains images, you will need to use one of these methods:

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

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

, URL- http://www.jsfiddle.net/ ( , jScrollPane).

+6

Source: https://habr.com/ru/post/1775425/


All Articles