Terminal: Fix scroll behavior

Change-Id: I357a5d04baab881cf89c57fdf3336bd1e0077976
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-02-27 13:15:15 +01:00
parent d249e77f77
commit ea64bb9d36

View File

@@ -776,10 +776,7 @@ int TerminalWidget::sb_clear()
void TerminalWidget::wheelEvent(QWheelEvent *event)
{
event->accept();
QPoint delta = event->angleDelta();
scrollContentsBy(0, delta.y() / 24);
verticalScrollBar()->event(event);
}
void TerminalWidget::focusInEvent(QFocusEvent *)