diff --git a/app/view/containmentinterface.cpp b/app/view/containmentinterface.cpp index cd8635e0f..64e2ba5ef 100644 --- a/app/view/containmentinterface.cpp +++ b/app/view/containmentinterface.cpp @@ -488,7 +488,7 @@ void ContainmentInterface::toggleAppletExpanded(const int id) } for (const auto applet : m_view->containment()->applets()) { - if (applet->id() == (uint)id) { + if (applet->id() == (uint)id && !m_view->layout()->isInternalContainment(applet)/*block for internal containments*/) { PlasmaQuick::AppletQuickItem *ai = applet->property("_plasma_graphicObject").value(); if (ai) { diff --git a/containment/package/contents/ui/applet/AppletItem.qml b/containment/package/contents/ui/applet/AppletItem.qml index 71acf081a..6f61b8679 100644 --- a/containment/package/contents/ui/applet/AppletItem.qml +++ b/containment/package/contents/ui/applet/AppletItem.qml @@ -663,7 +663,7 @@ Item { } onWheelScrolled: { - if (!root.mouseWheelActions || viewSignalsConnector.blockWheel + if (!appletItem.applet || !root.mouseWheelActions || viewSignalsConnector.blockWheel || (root.latteViewIsHidden || root.inSlidingIn || root.inSlidingOut)) { return; } @@ -671,7 +671,7 @@ Item { blockWheel = true; scrollDelayer.start(); - if (appletItem.containsPos(pos) /*&& root.latteView.extendedInterface.appletIsExpandable(applet.id)*/) { + if (appletItem.containsPos(pos) && root.latteView.extendedInterface.appletIsExpandable(applet.id)) { var angle = angleDelta.y / 8; var expanded = root.latteView.extendedInterface.appletIsExpanded(applet.id);