Fix bugs and improve trackpad scroll precision

Improve trackpad precision by making the amount
of scroll, flickVelocity and flickDeceleration
proportional
This commit is contained in:
vslg
2020-05-18 11:53:26 -03:00
parent 107f928007
commit 3094e47a99
3 changed files with 20 additions and 12 deletions

View File

@@ -4,16 +4,8 @@ import QtQuick 2.12
import QtQuick.Controls 2.12
Flickable {
id: flickable
interactive: contentWidth > width || contentHeight > height
ScrollBar.vertical: ScrollBar {
visible: flickable.interactive
}
readonly property HTrackpadFix trackpadFix: HTrackpadFix {
flickable: flickable
width: flickable.width
height: flickable.height
visible: parent.interactive
}
}