2023-11-15 14:06:56 +00:00
|
|
|
on.mouse_press = function(x,y, mouse_button)
|
2023-11-15 15:04:34 +00:00
|
|
|
if mouse_press_consumed_by_any_button_handler(Editor_state, x,y, mouse_button) then
|
|
|
|
return
|
|
|
|
end
|
2023-11-18 13:26:28 +00:00
|
|
|
if on_editor_scrollbar(x,y) then
|
|
|
|
Editor_scrollbar_drag = true
|
|
|
|
elseif on_editor_scrollbar_area(x,y) then
|
|
|
|
-- nothing
|
2023-11-18 14:03:57 +00:00
|
|
|
elseif x < Editor_state.right + 15 - 5 and y < Editor_state.bottom + 5 + 10 - 5 then
|
2023-11-18 13:26:28 +00:00
|
|
|
edit.mouse_press(Editor_state, x,y, mouse_button)
|
|
|
|
end
|
2023-11-15 14:06:56 +00:00
|
|
|
end
|