summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-12-08 01:26:00 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-12-08 01:26:00 +0100
commitdee49508de763847b22a308cda2ba96314a63bcc (patch)
treeda108829d004be50af42f89c4ce87d5a7608a331
parentChange scroll behaviour of timeline (diff)
downloadnheko-dee49508de763847b22a308cda2ba96314a63bcc.tar.xz
Simplify scroll logic
-rw-r--r--resources/qml/TimelineView.qml4
1 files changed, 0 insertions, 4 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index 238f21c7..1a1900ad 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -58,10 +58,6 @@ Item { onWheel: { if (wheel.angleDelta != 0) { chat.contentY = chat.contentY - wheel.angleDelta.y - if (wheel.angleDelta.y > 0 && chat.contentY > chat.contentHeight - chat.height) - chat.contentY = chat.contentHeight - chat.height - else if (wheel.angleDelta < 0 && chat.contentY < 0) - chat.contentY = 0 wheel.accepted = true chat.forceLayout() chat.updatePosition()