mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix grabbing issue on sides of piano roll
This commit is contained in:
parent
bb2ee7c2b9
commit
e3e024b94c
@ -423,8 +423,9 @@ consider_drag_start(int mouse_x, int mouse_y, int width, int height) {
|
|||||||
return DM_guide_bar;
|
return DM_guide_bar;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else if (mouse_x < _left_margin - 2 ||
|
||||||
// The mouse is above or below the graph; maybe create a new
|
mouse_x > width - _right_margin + 2) {
|
||||||
|
// The mouse is left or right of the graph; maybe create a new
|
||||||
// guide bar.
|
// guide bar.
|
||||||
return DM_new_guide_bar;
|
return DM_new_guide_bar;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user