Skip to content

Commit

Permalink
comment out logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Feb 14, 2025
1 parent 9894e70 commit b5aec5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/web/Main.re
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let act_str = (action: Update.t) =>

let apply = (old_model, action, state, ~schedule_action): Model.t => {
restart_caret_animation();
print_endline("Apply:" ++ Update.show(action));
// print_endline("Apply:" ++ Update.show(action));
switch (Update.apply(old_model, action, state, ~schedule_action)) {
| exception exn when Update.catch_exns^ =>
prerr_endline(Printexc.to_string(exn));
Expand Down
24 changes: 12 additions & 12 deletions src/web/view/Page.re
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,18 @@ let get_goal = (~font: Model.Font.t, ~target_id, e): Tylr_core.Loc.t => {
let rect = Util.Dom.get_elem_by_id(target_id)##getBoundingClientRect;
let goal_x = float_of_int(e##.clientX);
let goal_y = float_of_int(e##.clientY);
print_endline(
"goal: row/col "
++ string_of_float(goal_x)
++ ", "
++ string_of_float(goal_y),
);
print_endline(
"code-container: row/col "
++ string_of_float(rect##.top)
++ ", "
++ string_of_float(rect##.left),
);
// print_endline(
// "goal: row/col "
// ++ string_of_float(goal_x)
// ++ ", "
// ++ string_of_float(goal_y),
// );
// print_endline(
// "code-container: row/col "
// ++ string_of_float(rect##.top)
// ++ ", "
// ++ string_of_float(rect##.left),
// );
{
row: Float.to_int((goal_y -. rect##.top) /. font.row_height),
col: Float.(to_int(round((goal_x -. rect##.left) /. font.col_width))),
Expand Down

0 comments on commit b5aec5c

Please sign in to comment.