mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Make the first click zoom in from fully expanded
This commit is contained in:
parent
5d62b6d762
commit
d1c717617a
@ -474,7 +474,7 @@ void gGraph::mouseReleaseEvent(QMouseEvent * event)
|
|||||||
//if (xx==qq) xx=1800000;
|
//if (xx==qq) xx=1800000;
|
||||||
|
|
||||||
xmult=qq/double(w);
|
xmult=qq/double(w);
|
||||||
if (x==m_lastx23) {
|
if ((xx==qq) || (x==m_lastx23)) {
|
||||||
if (event->button() & Qt::RightButton) {
|
if (event->button() & Qt::RightButton) {
|
||||||
xx*=1.33;
|
xx*=1.33;
|
||||||
} else if (event->button() & Qt::LeftButton) {
|
} else if (event->button() & Qt::LeftButton) {
|
||||||
|
Loading…
Reference in New Issue
Block a user