Skip to content
Snippets Groups Projects
Commit 2795acfe authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix mousewheel center zoom

parent 6e40cab6
No related branches found
No related tags found
No related merge requests found
......@@ -426,6 +426,7 @@ int openglWindow::handle(int event)
case FL_MOUSEWHEEL:
{
_prev.set(_ctx, Fl::event_x(), Fl::event_y());
double dy = Fl::event_dy();
double fact = (5. * CTX::instance()->zoomFactor * fabs(dy) + h()) / (double)h();
if (CTX::instance()->camera){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment