disable interactible elements when drawing
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 13s
Python / lint-format (pull_request) Successful in 25s
Python / test (pull_request) Successful in 32s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m28s

This commit is contained in:
2026-06-19 23:21:01 +02:00
parent 697058146e
commit ca1243f9c7
6 changed files with 12 additions and 3 deletions
+2
View File
@@ -1,8 +1,10 @@
import QtQuick
import qs.Helpers
Flickable {
id: root
interactive: !Visibilities.getForActive().isDrawing
maximumFlickVelocity: 3000
rebound: Transition {
+2
View File
@@ -1,10 +1,12 @@
import QtQuick
import qs.Helpers
ListView {
id: root
property bool doneFakeFlick
interactive: !Visibilities.getForActive().isDrawing
maximumFlickVelocity: 3000
rebound: Transition {
+5 -1
View File
@@ -1,5 +1,6 @@
import QtQuick
import QtQuick.Templates
import qs.Helpers
import qs.Config
ScrollBar {
@@ -15,6 +16,7 @@ ScrollBar {
property bool shouldBeActive
readonly property real travelScale: root.rawTravel > 0 ? root.effectiveTravel / root.rawTravel : 0
enabled: !Visibilities.getForActive().isDrawing
implicitWidth: Appearance.padding.extraSmall * 2
contentItem: Item {
@@ -59,11 +61,13 @@ ScrollBar {
implicitHeight: root.height * root.effectiveSize
implicitWidth: fullMouse.pressed || fullMouse.containsMouse ? Appearance.padding.extraSmall * 2 : Appearance.padding.extraSmall
opacity: {
if (!root.enabled)
return 0;
if (root.size === 1)
return 0;
if (fullMouse.pressed)
return 1;
if (mouse.containsMouse)
if (fullMouse.containsMouse)
return 0.8;
if (root.policy === ScrollBar.AlwaysOn || root.shouldBeActive)
return 0.6;
+1 -1
View File
@@ -51,7 +51,7 @@ MouseArea {
anchors.fill: parent
cursorShape: !enabled ? undefined : Qt.PointingHandCursor
enabled: parent.enabled
enabled: parent.enabled && !Visibilities.getForActive().isDrawing
hoverEnabled: true
Behavior on stateOpacity {
+1
View File
@@ -124,6 +124,7 @@ Item {
acceptedButtons: Qt.LeftButton | Qt.RightButton
enabled: root.visibilities.isDrawing
grabPermissions: PointerHandler.CanTakeOverFromAnything | PointerHandler.TakeOverForbidden
onActiveChanged: {
if (!active) {
+1 -1
View File
@@ -162,7 +162,7 @@ Item {
color: DynamicColors.tPalette.m3surfaceContainer
radius: Appearance.rounding.normal
Flickable {
CustomFlickable {
id: clayout
anchors.fill: parent