mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Minor simplification.
git-svn-id: svn://localhost/ardour2/branches/3.0@12059 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8d94cc6d13
commit
8a98f466f9
1 changed files with 1 additions and 8 deletions
|
|
@ -2981,14 +2981,7 @@ LineDrag::motion (GdkEvent* event, bool)
|
|||
cy = min ((double) _line->height(), cy);
|
||||
|
||||
double const fraction = 1.0 - (cy / _line->height());
|
||||
|
||||
bool push;
|
||||
|
||||
if (Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
||||
push = false;
|
||||
} else {
|
||||
push = true;
|
||||
}
|
||||
bool const push = !Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier);
|
||||
|
||||
/* we are ignoring x position for this drag, so we can just pass in anything */
|
||||
_line->drag_motion (0, fraction, true, push);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue