抽搐jQuery动量滚动 [英] jerking jQuery momentum scroll
问题描述
我正在使用 jquery.momentum.js 作为我正在工作的应用程序。
我注意到当我触摸并向上或向下移动鼠标指针时,用于在网页上显示事件的滚动条突然以小动作突然开始上下颠簸。
我试图修改js文件中的配置,但似乎它不起作用,当我触摸并向上移动鼠标指针时,它仍然以很小的动作开始上下颠簸或者不称道。以下是我试图更改的参数。
fps: 60 ,//每秒帧数 msecs。
方向:null,// vertical, 水平,或 null 为两者。
scrollDuration: 2000 ,//持续时间 滚动动画在 msecs中。
overshootDuration: 250 ,//持续时间 超调动画 in msecs。
snapbackDuration: 350 ,//持续时间 快照动画 in msecs。 origianl值= 500
moveThreshold: 100 ,// mousemoves之间的时间必须不超过此阈值。
useCSSTransform: true ,//使用CSS 转换 属性而 top 和 left 用于定位。
任何帮助指导表示赞赏。
I am using jquery.momentum.js for an application on which i am working.
I have noticed that the scroll bar used for displaying events on webpage is suddenly begin jerking up and down in small motions very quickly when I touch and move mouse pointer up side or down side.
I have tried to modify the configuration in js file but it seems it is not working , It is still begin jerking up and down in small motions very quickly when i touch and move mouse pointer up side or down side. Here are the parameters i tried to change.
fps: 60, // Frames per second in msecs.
direction: null, // "vertical", "horizontal", or null for both.
scrollDuration: 2000, // Duration of the scrolling animation in msecs.
overshootDuration: 250, // Duration of the overshoot animation in msecs.
snapbackDuration: 350, // Duration of the snapback animation in msecs. origianl value =500
moveThreshold: 100, // Time between mousemoves must not exceed this threshold.
useCSSTransform: true, // Use CSS "transform" property instead of "top" and "left" for positioning.
Any help guidance appreciated.
这篇关于抽搐jQuery动量滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!