Commit 273df1b0 authored by Claes's avatar Claes Committed by Esteban Blanc

Plc editor, scroll event disabled during connection creation

parent 3da6e8f4
/* /*
* ProviewR Open Source Process Control. * ProviewR Open Source Process Control.
* Copyright (C) 2005-2020 SSAB EMEA AB. * Copyright (C) 2005-2020 SSAB EMEA AB.
* *
* This file is part of ProviewR. * This file is part of ProviewR.
* *
...@@ -104,8 +104,8 @@ FlowCtx::~FlowCtx() ...@@ -104,8 +104,8 @@ FlowCtx::~FlowCtx()
move_clear(); move_clear();
paste_clear(); paste_clear();
delete_all(); delete_all();
if (scroll_data) // if (scroll_data)
free(scroll_data); // free(scroll_data);
for (int i = 0; i < a_nc.a_size; i++) { for (int i = 0; i < a_nc.a_size; i++) {
element = a_nc.a[i]; element = a_nc.a[i];
...@@ -1330,6 +1330,11 @@ int FlowCtx::event_handler(flow_eEvent event, int x, int y, int w, int h) ...@@ -1330,6 +1330,11 @@ int FlowCtx::event_handler(flow_eEvent event, int x, int y, int w, int h)
case flow_eEvent_VisibilityObscured: case flow_eEvent_VisibilityObscured:
unobscured = 0; unobscured = 0;
break; break;
case flow_eEvent_ScrollUp:
case flow_eEvent_ScrollDown:
if (con_create_active)
return 1;
break;
default:; default:;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment