slider: further behavior improvements

Ladders appears offset on sliders with multipliers. Ladder also appears
on initial press (but still shows line edit if mouse wasn't moved)
This commit is contained in:
itsmattkc
2020-06-18 18:58:49 +10:00
parent 1f3e0db64b
commit 115e62f140
8 changed files with 73 additions and 85 deletions
+4
View File
@@ -131,6 +131,10 @@ void SliderLadder::TimerUpdate()
QCursor::setPos(drag_start_);
#endif
if (!x_mvmt && !y_mvmt) {
return;
}
int y_threshold = fontMetrics().height() / 2;
if (qAbs(y_mvmt) > qAbs(x_mvmt)