Former-commit-id: 5758bb6f9f3d5d5d3d5b1538b42dfeea077f4195
@@ -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);
}