| @@ -444,7 +444,10 @@ void ModuleWidget::onButton(const ButtonEvent& e) { | |||||
| void ModuleWidget::onDragStart(const DragStartEvent& e) { | void ModuleWidget::onDragStart(const DragStartEvent& e) { | ||||
| if (e.button == GLFW_MOUSE_BUTTON_LEFT) { | if (e.button == GLFW_MOUSE_BUTTON_LEFT) { | ||||
| // HACK Disable FramebufferWidget redrawing subpixels while dragging | // HACK Disable FramebufferWidget redrawing subpixels while dragging | ||||
| APP->window->fbDirtyOnSubpixelChange() = false; | |||||
| // APP->window->fbDirtyOnSubpixelChange() = false; | |||||
| if (!settings::lockModules) { | |||||
| glfwSetCursor(APP->window->win, glfwCreateStandardCursor(GLFW_HAND_CURSOR)); | |||||
| } | |||||
| // Clear dragRack so dragging in not enabled until mouse is moved a bit. | // Clear dragRack so dragging in not enabled until mouse is moved a bit. | ||||
| internal->dragRackPos = math::Vec(NAN, NAN); | internal->dragRackPos = math::Vec(NAN, NAN); | ||||
| @@ -458,6 +461,8 @@ void ModuleWidget::onDragEnd(const DragEndEvent& e) { | |||||
| if (e.button == GLFW_MOUSE_BUTTON_LEFT) { | if (e.button == GLFW_MOUSE_BUTTON_LEFT) { | ||||
| APP->window->fbDirtyOnSubpixelChange() = true; | APP->window->fbDirtyOnSubpixelChange() = true; | ||||
| glfwSetCursor(APP->window->win, NULL); | |||||
| // The next time the module is dragged, it should always move immediately | // The next time the module is dragged, it should always move immediately | ||||
| internal->dragEnabled = true; | internal->dragEnabled = true; | ||||
| @@ -1157,4 +1162,4 @@ engine::Module* ModuleWidget::releaseModule() { | |||||
| } // namespace app | } // namespace app | ||||
| } // namespace rack | |||||
| } // namespace rack | |||||