mirror of https://github.com/procxx/kepka.git
parent
484ec06b0c
commit
0b13ee7f7d
|
@ -1247,7 +1247,8 @@ bool InnerWidget::updateReorderPinned(QPoint localPosition) {
|
|||
const auto delta = [&] {
|
||||
if (localPosition.y() < _visibleTop) {
|
||||
return localPosition.y() - _visibleTop;
|
||||
} else if (_openedFolder && localPosition.y() > _visibleBottom) {
|
||||
} else if ((_openedFolder || _filterId)
|
||||
&& localPosition.y() > _visibleBottom) {
|
||||
return localPosition.y() - _visibleBottom;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -745,7 +745,9 @@ void Widget::onDraggingScrollDelta(int delta) {
|
|||
}
|
||||
|
||||
void Widget::onDraggingScrollTimer() {
|
||||
auto delta = (_draggingScrollDelta > 0) ? qMin(_draggingScrollDelta * 3 / 20 + 1, int32(Ui::kMaxScrollSpeed)) : qMax(_draggingScrollDelta * 3 / 20 - 1, -int32(Ui::kMaxScrollSpeed));
|
||||
const auto delta = (_draggingScrollDelta > 0)
|
||||
? qMin(_draggingScrollDelta * 3 / 20 + 1, Ui::kMaxScrollSpeed)
|
||||
: qMax(_draggingScrollDelta * 3 / 20 - 1, -Ui::kMaxScrollSpeed);
|
||||
_scroll->scrollToY(_scroll->scrollTop() + delta);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue