@ -33,15 +33,17 @@ QtControls.ScrollView {
property DocumentItem document
property DocumentItem document
property PageItem page: mouseArea . currPageDelegate . pageItem
property PageItem page: mouseArea . currPageDelegate . pageItem
signal clicked
signal clicked
onWidthChanged: resizeTimer . restart ( )
/ / N O T E : o n s o m e t h e m e s i t t r i e s t o s e t t h e f l i c k a b l e t o i n t e r a c t i v e
onHeightChanged: resizeTimer . restart ( )
/ / b u t w e n e e d i t a l w a y s n o n i n t e r a c t i v e a s w e n e e d t o m a n a g e
/ / d r a g g i n g b y o u r s e l v e s
Component.onCompleted: flick . interactive = false
Flickable {
Flickable {
id: flick
id: flick
anchors.fill: parent
interactive: false
onWidthChanged: resizeTimer . restart ( )
onHeightChanged: resizeTimer . restart ( )
clip: true
Component.onCompleted: {
Component.onCompleted: {
flick . contentWidth = flick . width
flick . contentWidth = flick . width
flick . contentHeight = flick . width / mouseArea . currPageDelegate . pageRatio
flick . contentHeight = flick . width / mouseArea . currPageDelegate . pageRatio
@ -248,4 +250,4 @@ QtControls.ScrollView {
}
}
}
}
}
}
}
}