Improve trackpad fix

- Add it to remaining components
- Do not use Timer, as flickDeceleration from
  Flickable is more performant
- Add a setting option for it: useTrackpadFix
This commit is contained in:
vslg
2020-05-15 20:32:44 -03:00
parent b179480327
commit f72544e3d0
5 changed files with 33 additions and 36 deletions

View File

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