replace a typo with the result that led to the desired non-step behaviour on non-dragging clicks for horizontal sliders, so that the track can be selected by clicking on the fader without changing its position.

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3071 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2008-02-16 11:04:30 +00:00
parent 14f988c5cc
commit 805536fafa
2 changed files with 4 additions and 4 deletions

View file

@ -64,7 +64,7 @@ Mixer_UI::Mixer_UI ()
: Window (Gtk::WINDOW_TOPLEVEL)
{
session = 0;
Config->get_default_narrow_ms() ? _strip_width = Narrow : _strip_width = Wide;
_strip_width = Config->get_default_narrow_ms() ? Narrow : Wide;
track_menu = 0;
mix_group_context_menu = 0;
no_track_list_redisplay = false;

View file

@ -138,8 +138,8 @@ PixFader::on_button_release_event (GdkEventButton* ev)
{
double fract, ev_pos;
(_orien == VERT) ? ev_pos = ev->y : ev->x;
ev_pos = (_orien == VERT) ? ev->y : 0; // Don't step if we are horizontal
switch (ev->button) {
case 1:
if (dragging) {
@ -238,7 +238,7 @@ PixFader::on_motion_notify_event (GdkEventMotion* ev)
{
if (dragging) {
double fract, delta, scale, ev_pos;
(_orien == VERT) ? ev_pos = ev->y : ev_pos = ev->x;
ev_pos = (_orien == VERT) ? ev->y : ev->x;
//cerr << "PixFader::on_motion_notify_event() called x:y = " << ev->x << ":" << ev->y;
if (ev->window != grab_window) {
grab_loc = ev_pos;