Don't animate highlight rectangle sliding on click
This commit is contained in:
@@ -51,7 +51,15 @@ HInteractiveRectangle {
|
||||
onTriggered: if (isCurrent) beHighlighted()
|
||||
}
|
||||
|
||||
TapHandler { onTapped: accountDelegate.activate() }
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
accountRoomList.highlightRangeMode = ListView.NoHighlightRange
|
||||
accountRoomList.highlightMoveDuration = 0
|
||||
activate()
|
||||
accountRoomList.highlightRangeMode = ListView.ApplyRange
|
||||
accountRoomList.highlightMoveDuration = theme.animationDuration
|
||||
}
|
||||
}
|
||||
|
||||
HRowLayout {
|
||||
id: row
|
||||
|
@@ -45,7 +45,15 @@ HInteractiveRectangle {
|
||||
onTriggered: if (isCurrent) beHighlighted()
|
||||
}
|
||||
|
||||
TapHandler { onTapped: activate() }
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
accountRoomList.highlightRangeMode = ListView.NoHighlightRange
|
||||
accountRoomList.highlightMoveDuration = 0
|
||||
activate()
|
||||
accountRoomList.highlightRangeMode = ListView.ApplyRange
|
||||
accountRoomList.highlightMoveDuration = theme.animationDuration
|
||||
}
|
||||
}
|
||||
|
||||
HRowLayout {
|
||||
id: rowLayout
|
||||
|
Reference in New Issue
Block a user