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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user