16 lines
830 B
Plaintext
16 lines
830 B
Plaintext
on.mouse_release = function(x,y, mouse_button)
|
|
Selected_slider = nil
|
|
if Current_pane.editor_state.scrollbar_drag then
|
|
adjust_scrollbar(Current_pane.editor_state, y)
|
|
Current_pane.editor_state.scrollbar_drag = nil
|
|
elseif on_editor_scrollbar_area(Current_pane.editor_state, x,y) then
|
|
adjust_scrollbar(Current_pane.editor_state, y)
|
|
elseif x < Current_pane.editor_state.right + 15 - 5 and y < Current_pane.editor_state.bottom + 5 + 10 - 5 then
|
|
edit.mouse_release(Current_pane.editor_state, x,y, mouse_button)
|
|
elseif Current_pane.output_editor_state.scrollbar_drag then
|
|
adjust_scrollbar(Current_pane.output_editor_state, y)
|
|
Current_pane.output_editor_state.scrollbar_drag = nil
|
|
elseif on_editor_scrollbar_area(Current_pane.output_editor_state, x,y) then
|
|
adjust_scrollbar(Current_pane.output_editor_state, y)
|
|
end
|
|
end |