Skip to content

Commit

Permalink
Merge pull request #320 from amnezia-vpn/bugfix/scroll_stuck_on_fl_te…
Browse files Browse the repository at this point in the history
…xtarea

fixed scroll stuck on textarea in page OpenVpnSettings
  • Loading branch information
Nethius authored Sep 18, 2023
2 parents fd09321 + 29e8f8f commit fd9f9ee
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 @@ -16,6 +16,9 @@ Rectangle {
radius: 16

FlickableType {
id: fl
interactive: false

anchors.top: parent.top
anchors.bottom: parent.bottom
contentHeight: textArea.implicitHeight
Expand All @@ -41,12 +44,23 @@ Rectangle {
placeholderText: root.placeholderText
text: root.text

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 fd9f9ee

Please sign in to comment.