mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 09:27:39 +01:00
back out experiments with vertical drag for scroll that broke cursor drag in the ruler
This commit is contained in:
parent
fa02cb2f6e
commit
f39a81f006
1 changed files with 3 additions and 18 deletions
|
|
@ -2872,25 +2872,10 @@ CursorDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
|
|||
void
|
||||
CursorDrag::motion (GdkEvent* event, bool)
|
||||
{
|
||||
double x, y;
|
||||
gdk_event_get_coords (event, &x, &y);
|
||||
|
||||
cerr << "M on " << _item->name << ' ' << _item->whatami() << endl;
|
||||
|
||||
if (_item->covers (Duple (x, y))) {
|
||||
/* still inside item bbox */
|
||||
|
||||
framepos_t const adjusted_frame = adjusted_current_frame (event);
|
||||
if (adjusted_frame != last_pointer_frame()) {
|
||||
fake_locate (adjusted_frame);
|
||||
}
|
||||
cerr << "no vertical drag " << Duple (x,y) << " inside ruler\n";
|
||||
return;
|
||||
framepos_t const adjusted_frame = adjusted_current_frame (event);
|
||||
if (adjusted_frame != last_pointer_frame()) {
|
||||
fake_locate (adjusted_frame);
|
||||
}
|
||||
|
||||
/* vertical drag */
|
||||
|
||||
cerr << "can vertically drag " << Duple (x,y) << " outside ruler\n";
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue