mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-24 18:03:53 +03:00
reduce interval for Parabolic Nullifier
This commit is contained in:
parent
72d6383401
commit
b9b41317ca
@ -32,7 +32,10 @@ Parabolic::Parabolic(Latte::View *parent)
|
||||
: QObject(parent),
|
||||
m_view(parent)
|
||||
{
|
||||
m_parabolicItemNullifier.setInterval(100);
|
||||
//! Parabolic Item Nullifier does not need any big interval in order to avoid
|
||||
//! nullifing currentParabolicItem too fast and as such send a false signal
|
||||
//! that NO parabolic item is hovered currently
|
||||
m_parabolicItemNullifier.setInterval(1);
|
||||
m_parabolicItemNullifier.setSingleShot(true);
|
||||
connect(&m_parabolicItemNullifier, &QTimer::timeout, this, [&]() {
|
||||
setCurrentParabolicItem(nullptr);
|
||||
@ -109,7 +112,7 @@ void Parabolic::onCurrentParabolicItemChanged()
|
||||
{
|
||||
m_parabolicItemNullifier.stop();
|
||||
|
||||
if (m_currentParabolicItem != nullptr) {
|
||||
if (m_currentParabolicItem) {
|
||||
QPointF internal = m_currentParabolicItem->mapFromScene(m_lastOrphanParabolicMove);
|
||||
|
||||
if (m_currentParabolicItem->contains(internal)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user