@ -19,6 +19,7 @@ Item {
readonly property bool isThinTooltipEnabled: parabolicAreaLoader . isThinTooltipEnabled
property real length: root . isHorizontal ? appletItem.width : appletItem . height
property var lastMousePoint: { "x" : 0 , "y" : 0 }
MouseArea {
id: parabolicMouseArea
@ -53,6 +54,9 @@ Item {
}
onParabolicEntered: {
lastMousePoint . x = mouseX ;
lastMousePoint . y = mouseY ;
if ( isThinTooltipEnabled && ! ( isSeparator || isSpacer || isMarginsAreaSeparator ) ) {
appletItem . thinTooltip . show ( appletItem . tooltipVisualParent , applet . title ) ;
}
@ -81,6 +85,9 @@ Item {
}
onParabolicMove: {
lastMousePoint . x = mouseX ;
lastMousePoint . y = mouseY ;
if ( ! appletItem . myView . isShownFully
|| appletItem . originalAppletBehavior
|| ! appletItem . parabolicEffectIsSupported
@ -115,6 +122,20 @@ Item {
}
}
Connections {
target: appletItem . myView
/ / ! D u r i n g d o c k s l i d i n g - i n b e c a u s e t h e p a r a b o l i c e f f e c t i s n t t r i g e r r e d
/ / ! i m m e d i a t e l y b u t w e w a i t f i r s t t h e d o c k t o g o t o i t s f i n a l n o r m a l
/ / ! p l a c e w e m i g h t m i s s t h e a c t i v a t i o n o f t h e p a r a b o l i c e f f e c t .
/ / ! B y c a t c h i n g t h a t s i g n a l w e a r e t r y i n g t o s o l v e t h i s .
onIsShownFullyChanged: {
if ( appletItem . myView . isShownFully && _parabolicArea . containsMouse ) {
_parabolicArea . parabolicMove ( _parabolicArea . lastMousePoint . x , _parabolicArea . lastMousePoint . y ) ;
}
}
}
function calculateParabolicScales ( currentMousePosition ) {
if ( parabolic . factor . zoom === 1 || parabolic . restoreZoomIsBlocked ) {
return ;