mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-13 01:02:18 -04:00
running apps: fix scroll events being propagated fixes #1724
This commit is contained in:
@@ -155,6 +155,7 @@ BasePill {
|
|||||||
property real touchpadThreshold: 500
|
property real touchpadThreshold: 500
|
||||||
|
|
||||||
onWheel: function (wheelEvent) {
|
onWheel: function (wheelEvent) {
|
||||||
|
wheelEvent.accepted = true;
|
||||||
const deltaY = wheelEvent.angleDelta.y;
|
const deltaY = wheelEvent.angleDelta.y;
|
||||||
const isMouseWheel = Math.abs(deltaY) >= 120 && (Math.abs(deltaY) % 120) === 0;
|
const isMouseWheel = Math.abs(deltaY) >= 120 && (Math.abs(deltaY) % 120) === 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user