问题描述
|
我的HTML页面使用的是jScrollPane。我想禁用scrollDrag功能,因为我只需要向上和向下箭头即可滚动页面,而无需拖动轨道/拖动
怎么做?
解决方法
JScrollPane
从JComponent
继承processMouseMotionEvent()
如果您要用自己的版本覆盖继承的processMouseMotionEvent()
,则可以选择忽略MouseEvent.MOUSE_DRAGGED
事件
, .jspDrag {
background:#bbd;
position:relative;
top:0;
left:0;
cursor:pointer;
**display:none;**
}