scroll zoom: use fractions of power of 2 to avoid desync between key and mouse zoom

This commit is contained in:
Philippe Teuwen
2020-10-05 09:34:29 +02:00
parent 34b2c15b8d
commit 13badb6088
2 changed files with 7 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ class Plot: public QWidget {
protected:
void paintEvent(QPaintEvent *event);
void closeEvent(QCloseEvent *event);
void Zoom(float factor, int refX);
void Zoom(double factor, int refX);
void Move(int offset);
void Trim(void);
void wheelEvent(QWheelEvent *event);