jScrollpane Chrome problem

杀马特。学长 韩版系。学妹 提交于 2019-12-07 19:22:54

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/4204864/jscrollpane-chrome-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!