mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-04-12 06:28:52 -04:00
OSX mouse wheel adjust
This commit is contained in:
parent
234f0783a0
commit
caab5f2e05
@ -680,11 +680,7 @@ void WaterfallCanvas::OnMouseWheelMoved(wxMouseEvent& event) {
|
||||
InteractiveCanvas::OnMouseWheelMoved(event);
|
||||
float movement = (float)event.GetWheelRotation() / (float)event.GetLinesPerAction();
|
||||
|
||||
#ifdef __APPLE__
|
||||
mouseZoom = 1.0f - movement/100.0f;
|
||||
#else
|
||||
mouseZoom = 1.0f - movement/1000.0f;
|
||||
#endif
|
||||
}
|
||||
|
||||
void WaterfallCanvas::OnMouseReleased(wxMouseEvent& event) {
|
||||
|
Loading…
Reference in New Issue
Block a user