mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: threshold of wheel on app item
https://github.com/linuxdeepin/internal-discussion/issues/667 Change-Id: I544eb3de96214eb8c2f8095ebac4cecab2066269
This commit is contained in:
parent
add22a41a2
commit
c45df0263d
Notes:
gerrit
2018-12-17 18:03:03 +08:00
Verified+1: <jenkins@deepin.com> Code-Review+2: listenerri <listenerri@gmail.com> Submitted-by: listenerri <listenerri@gmail.com> Submitted-at: Mon, 17 Dec 2018 18:03:00 +0800 Reviewed-on: https://cr.deepin.io/40620 Project: dde/dde-dock Branch: refs/heads/master
@ -356,7 +356,9 @@ void AppItem::wheelEvent(QWheelEvent *e)
|
|||||||
{
|
{
|
||||||
QWidget::wheelEvent(e);
|
QWidget::wheelEvent(e);
|
||||||
|
|
||||||
m_itemEntryInter->PresentWindows();
|
if (qAbs(e->angleDelta().y()) > 20) {
|
||||||
|
m_itemEntryInter->PresentWindows();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppItem::resizeEvent(QResizeEvent *e)
|
void AppItem::resizeEvent(QResizeEvent *e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user