Skip to content

Commit

Permalink
fixed scroll stuck on textarea in page OpenVpnSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
ronoaer committed Sep 11, 2023
1 parent f11c65c commit a964d95
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion client/ui/qml/Controls2/TextAreaType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Rectangle {
radius: 16

FlickableType {
id: fl
interactive: false

anchors.top: parent.top
anchors.bottom: parent.bottom
contentHeight: textArea.implicitHeight
Expand Down Expand Up @@ -46,12 +49,23 @@ Rectangle {
}
}

onCursorVisibleChanged: {
if (textArea.cursorVisible) {
fl.interactive = true
} else {
fl.interactive = false
}
}

wrapMode: Text.Wrap

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: contextMenu.open()
onClicked: {
fl.interactive = true
contextMenu.open()
}
}

ContextMenuType {
Expand Down

0 comments on commit a964d95

Please sign in to comment.