mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
Merge pull request #11206 from vladest/goto_remove_snap
Switch off snap behavior
This commit is contained in:
commit
42f6333948
2 changed files with 12 additions and 4 deletions
|
@ -46,6 +46,8 @@ Item {
|
||||||
property int stackShadowNarrowing: 5;
|
property int stackShadowNarrowing: 5;
|
||||||
property string defaultThumbnail: Qt.resolvedUrl("../../images/default-domain.gif");
|
property string defaultThumbnail: Qt.resolvedUrl("../../images/default-domain.gif");
|
||||||
property int shadowHeight: 10;
|
property int shadowHeight: 10;
|
||||||
|
property bool hovered: false
|
||||||
|
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
|
|
||||||
function pastTime(timestamp) { // Answer a descriptive string
|
function pastTime(timestamp) { // Answer a descriptive string
|
||||||
|
@ -231,6 +233,13 @@ Item {
|
||||||
// to that which is being hovered over.
|
// to that which is being hovered over.
|
||||||
property var hoverThunk: function () { };
|
property var hoverThunk: function () { };
|
||||||
property var unhoverThunk: function () { };
|
property var unhoverThunk: function () { };
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent;
|
||||||
|
visible: root.hovered
|
||||||
|
color: "transparent";
|
||||||
|
border.width: 4; border.color: hifiStyleConstants.colors.primaryHighlight;
|
||||||
|
z: 1;
|
||||||
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
acceptedButtons: Qt.LeftButton;
|
acceptedButtons: Qt.LeftButton;
|
||||||
|
|
|
@ -206,9 +206,9 @@ Column {
|
||||||
id: scroll;
|
id: scroll;
|
||||||
model: suggestions;
|
model: suggestions;
|
||||||
orientation: ListView.Horizontal;
|
orientation: ListView.Horizontal;
|
||||||
|
highlightFollowsCurrentItem: false
|
||||||
highlightMoveDuration: -1;
|
highlightMoveDuration: -1;
|
||||||
highlightMoveVelocity: -1;
|
highlightMoveVelocity: -1;
|
||||||
highlight: Rectangle { color: "transparent"; border.width: 4; border.color: hifiStyleConstants.colors.primaryHighlight; z: 1; }
|
|
||||||
currentIndex: -1;
|
currentIndex: -1;
|
||||||
|
|
||||||
spacing: 12;
|
spacing: 12;
|
||||||
|
@ -237,9 +237,8 @@ Column {
|
||||||
textSizeSmall: root.textSizeSmall;
|
textSizeSmall: root.textSizeSmall;
|
||||||
stackShadowNarrowing: root.stackShadowNarrowing;
|
stackShadowNarrowing: root.stackShadowNarrowing;
|
||||||
shadowHeight: root.stackedCardShadowHeight;
|
shadowHeight: root.stackedCardShadowHeight;
|
||||||
|
hoverThunk: function () { hovered = true }
|
||||||
hoverThunk: function () { scrollToIndex(index); }
|
unhoverThunk: function () { hovered = false }
|
||||||
unhoverThunk: function () { scrollToIndex(-1); }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|
Loading…
Reference in a new issue