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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user