Commit 97d14b4c authored by Karel Slaný's avatar Karel Slaný

Trying to make flicks work with active VoiceOver.

parent 81d7f692
......@@ -88,6 +88,9 @@ Item {
flickableDirection: Flickable.VerticalFlick
contentWidth: textArea.width;
contentHeight: textArea.height
TextArea.flickable: TextArea {
id: textArea
......@@ -96,7 +99,8 @@ Item {
font.pointSize: defaultTextFont.font.pointSize
textFormat: TextEdit.RichText
horizontalAlignment: Text.AlignHCenter
//effectiveHorizontalAlignment: TextEdit.AlignHCenter
horizontalAlignment: TextEdit.AlignHCenter
wrapMode: Text.WordWrap
readOnly: true
persistentSelection: true
......@@ -115,6 +119,24 @@ Item {
ScrollIndicator.vertical: ScrollIndicator {}
ScrollIndicator.horizontal: ScrollIndicator {}
function moveUp() {
contentY = contentY + (height / 2)
returnToBounds()
}
function moveDown() {
contentY = contentY - (height / 2)
returnToBounds()
}
Accessible.onScrollDownAction: {
moveDown()
}
Accessible.onScrollUpAction: {
moveUp()
}
}
AccessibleText {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment