livebook-dev / livebook

Automate code & data workflows with interactive Elixir notebooks
https://livebook.dev
Apache License 2.0
4.87k stars 415 forks source link

Clicking on a cell does not set the cursor to the position where you clicked #2688

Closed mmower closed 3 months ago

mmower commented 3 months ago

When I click on a cell instead of the cursor being at the position where I have clicked, it is at the beginning of the cell.

It requires a second click to set the cursor position.

This is actually pretty annoying because I often don't notice and end up typing over the beginning of the cell.

Using Safari 17.5 on macOS 14.5 (M2 Max Mac Studio)

jonatanklosko commented 3 months ago

Hey @mmower, which version of Livebook are you using?

mmower commented 3 months ago

0.13.2

jonatanklosko commented 3 months ago

Does it happen for every cell, or only for long cells? And is it clicking anywhere in the cell, or specific area?

mmower commented 3 months ago

Every cell I've tried. It doesn't matter where I click, the cursor is always put at the beginning of the cell.

hugobarauna commented 3 months ago

@jonatanklosko It looks to replicate; you need to edit one cell and then try to click in some line of another cell. Here's a video: https://share.cleanshot.com/b7BlKQxK

In that video, I was using the "default" key bindings code editor setting:

CleanShot 2024-06-27 at 18 51 25

jonatanklosko commented 3 months ago

@hugobarauna thanks :)