mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 控制中心个性化任务栏界面,滚动方向和鼠标移动方向不一致
控制中心个性化任务栏界面,鼠标左键选中右侧滚动条,滚动方向和鼠标移动方向不一致 Log: 控制中心个性化任务栏界面,鼠标左键选中右侧滚动条,滚动方向和鼠标移动方向不一致 Influence: 控制中心个性化任务栏滚动条 Bug: https://pms.uniontech.com/bug-view-143975.html Change-Id: Ic9ac23307ea14af7e9a4d744cc87735900acdcc2
This commit is contained in:
parent
a687a45b5a
commit
1cff0b8600
@ -378,7 +378,7 @@ void ModuleWidget::initUI()
|
||||
}
|
||||
|
||||
// 支持在触摸屏上滚动
|
||||
QScroller::grabGesture(this->window(), QScroller::LeftMouseButtonGesture);
|
||||
QScroller::grabGesture(this->viewport(), QScroller::LeftMouseButtonGesture);
|
||||
QScroller *scroller = QScroller::scroller(this->window());
|
||||
QScrollerProperties sp;
|
||||
sp.setScrollMetric(QScrollerProperties::VerticalOvershootPolicy, QScrollerProperties::OvershootAlwaysOff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user