Centralize retained control capture release
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "app.h"
|
||||
#include "node_panel_grid.h"
|
||||
#include "legacy_ui_gl_dispatch.h"
|
||||
#include "legacy_ui_overlay_services.h"
|
||||
#include "legacy_canvas_tool_services.h"
|
||||
#include "legacy_history_services.h"
|
||||
#include "log.h"
|
||||
@@ -836,7 +837,7 @@ kEventResult NodeCanvas::handle_event(Event* e)
|
||||
mode->on_GestureEvent(ge);
|
||||
break;
|
||||
case kEventType::GestureEnd:
|
||||
mouse_release();
|
||||
pp::panopainter::release_legacy_mouse_capture(*this);
|
||||
for (auto& mode : *m_canvas->m_mode)
|
||||
mode->on_GestureEvent(ge);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user