mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Simplify scroll logic
This commit is contained in:
parent
8c44c5e2d0
commit
dee49508de
1 changed files with 0 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue