Skip to content

Commit c77afbe

Browse files
committed
comment out probable dead code.
1 parent 1a3b50a commit c77afbe

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

lib/scenic/view_port/input.ex

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -192,45 +192,45 @@ defmodule Scenic.ViewPort.Input do
192192

193193
# --------------------------------------------------------
194194
# cursor_enter is only sent to the root graph_key
195-
defp do_handle_captured_input(
196-
{:cursor_enter, global_pos} = input,
197-
context,
198-
%{max_depth: max_depth} = state
199-
) do
200-
{uid, id, point} = find_by_captured_point(global_pos, context, max_depth)
201-
202-
Scene.cast(
203-
context.graph_key,
204-
{
205-
:input,
206-
{:cursor_enter, point},
207-
%{context | uid: uid, id: id, raw_input: input}
208-
}
209-
)
195+
# defp do_handle_captured_input(
196+
# {:cursor_enter, global_pos} = input,
197+
# context,
198+
# %{max_depth: max_depth} = state
199+
# ) do
200+
# {uid, id, point} = find_by_captured_point(global_pos, context, max_depth)
201+
202+
# Scene.cast(
203+
# context.graph_key,
204+
# {
205+
# :input,
206+
# {:cursor_enter, point},
207+
# %{context | uid: uid, id: id, raw_input: input}
208+
# }
209+
# )
210210

211-
{:noreply, state}
212-
end
213-
214-
# --------------------------------------------------------
215-
# cursor_exit is only sent to the root graph_key
216-
defp do_handle_captured_input(
217-
{:cursor_exit, global_pos} = input,
218-
context,
219-
%{max_depth: max_depth} = state
220-
) do
221-
{uid, id, point} = find_by_captured_point(global_pos, context, max_depth)
211+
# {:noreply, state}
212+
# end
222213

223-
Scene.cast(
224-
context.graph_key,
225-
{
226-
:input,
227-
{:cursor_enter, point},
228-
%{context | uid: uid, id: id, raw_input: input}
229-
}
230-
)
214+
# # --------------------------------------------------------
215+
# # cursor_exit is only sent to the root graph_key
216+
# defp do_handle_captured_input(
217+
# {:cursor_exit, global_pos} = input,
218+
# context,
219+
# %{max_depth: max_depth} = state
220+
# ) do
221+
# {uid, id, point} = find_by_captured_point(global_pos, context, max_depth)
222+
223+
# Scene.cast(
224+
# context.graph_key,
225+
# {
226+
# :input,
227+
# {:cursor_enter, point},
228+
# %{context | uid: uid, id: id, raw_input: input}
229+
# }
230+
# )
231231

232-
{:noreply, state}
233-
end
232+
# {:noreply, state}
233+
# end
234234

235235
# --------------------------------------------------------
236236
# cursor_enter is only sent to the root graph_key

0 commit comments

Comments
 (0)