From dee49508de763847b22a308cda2ba96314a63bcc Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Sun, 8 Dec 2019 01:26:00 +0100
Subject: [PATCH] Simplify scroll logic

---
 resources/qml/TimelineView.qml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 238f21c71..1a1900ad4 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()
-- 
GitLab