mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-29 07:21:49 +03:00
use very high sensitivity for parabolic effect
This commit is contained in:
parent
18066f41f7
commit
b64bb1f9d2
@ -94,7 +94,6 @@ Item {
|
||||
property int spacersMaxSize: Math.max(0,Math.ceil(0.5*root.iconSize) - root.iconMargin)
|
||||
property int status: applet ? applet.status : -1
|
||||
|
||||
property real animationStep: Math.min(3, root.iconSize / 8)
|
||||
property real computeWidth: root.isVertical ? wrapper.width :
|
||||
hiddenSpacerLeft.width+wrapper.width+hiddenSpacerRight.width
|
||||
|
||||
@ -596,7 +595,7 @@ Item {
|
||||
if( ((wrapper.zoomScale == 1 || wrapper.zoomScale === root.zoomFactor) && !root.globalDirectRender) || root.globalDirectRender) {
|
||||
if (root.isHorizontal){
|
||||
var step = Math.abs(layoutsContainer.currentSpot-mouse.x);
|
||||
if (step >= container.animationStep){
|
||||
if (step >= root.animationStep){
|
||||
layoutsContainer.hoveredIndex = index;
|
||||
layoutsContainer.currentSpot = mouse.x;
|
||||
|
||||
@ -605,7 +604,7 @@ Item {
|
||||
}
|
||||
else{
|
||||
var step = Math.abs(layoutsContainer.currentSpot-mouse.y);
|
||||
if (step >= container.animationStep){
|
||||
if (step >= root.animationStep){
|
||||
layoutsContainer.hoveredIndex = index;
|
||||
layoutsContainer.currentSpot = mouse.y;
|
||||
|
||||
|
@ -292,6 +292,7 @@ DragDrop.DropArea {
|
||||
readonly property bool hasInternalSeparator: latteApplet ? latteApplet.hasInternalSeparator : false
|
||||
|
||||
property int activeIndicatorType: plasmoid.configuration.activeIndicatorType
|
||||
property int animationStep: 1 // Math.min(3, root.iconSize / 8) // TO BE UPDATED WITH NEW UNIVERSAL SETTINGS OPTIONS IN EDITOR WINDOW
|
||||
property int glowOption: plasmoid.configuration.glowOption
|
||||
property real glowOpacity: plasmoid.configuration.glowOpacity/100
|
||||
|
||||
|
@ -153,6 +153,7 @@ Item {
|
||||
property alias windowPreviewIsShown: windowsPreviewDlg.visible
|
||||
|
||||
property int activeIndicatorType: latteDock ? latteDock.activeIndicatorType : Latte.Dock.LineIndicator
|
||||
property int animationStep: latteDock ? latteDock.animationStep : 1
|
||||
property int directRenderAnimationTime: latteDock ? latteDock.directRenderAnimationTime : 0
|
||||
property int dockHoveredIndex : latteDock ? latteDock.hoveredIndex : -1
|
||||
property int iconMargin: latteDock ? latteDock.iconMargin : 0.12*iconSize
|
||||
|
@ -128,8 +128,6 @@ MouseArea{
|
||||
property int resistanceDelay: 450
|
||||
property int spacersMaxSize: Math.max(0,Math.ceil(0.55*root.iconSize) - root.iconMargin)
|
||||
|
||||
property real animationStep: Math.min(3, root.iconSize / 8)
|
||||
|
||||
property string activity: tasksModel.activity
|
||||
|
||||
readonly property var m: model
|
||||
@ -569,7 +567,7 @@ MouseArea{
|
||||
if(root.dragSource == null){
|
||||
if (icList.orientation == Qt.Horizontal){
|
||||
var step = Math.abs(icList.currentSpot-mouse.x);
|
||||
if (step >= animationStep){
|
||||
if (step >= root.animationStep){
|
||||
icList.hoveredIndex = index;
|
||||
icList.currentSpot = mouse.x;
|
||||
|
||||
@ -578,7 +576,7 @@ MouseArea{
|
||||
}
|
||||
else{
|
||||
var step = Math.abs(icList.currentSpot-mouse.y);
|
||||
if (step >= animationStep){
|
||||
if (step >= root.animationStep){
|
||||
icList.hoveredIndex = index;
|
||||
icList.currentSpot = mouse.y;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user