Forráskód Böngészése

bug in mouse move/mouse down interaction

Former-commit-id: 5758bb6f9f3d5d5d3d5b1538b42dfeea077f4195
Alec Jacobson 9 éve
szülő
commit
e509a6c38c
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      include/igl/viewer/Viewer.cpp

+ 3 - 2
include/igl/viewer/Viewer.cpp

@@ -159,9 +159,10 @@ static void glfw_mouse_move(GLFWwindow* window, double x, double y)
 {
   if(
 #ifdef IGL_VIEWER_WITH_NANOGUI
-      __viewer->screen->cursorPosCallbackEvent(x,y) == false || 
+      __viewer->screen->cursorPosCallbackEvent(x,y) == false &&
 #endif
-      __viewer->down)
+      true
+    )
   {
     __viewer->mouse_move(x*highdpi, y*highdpi);
   }