Change:
return this.count; } <del> return this._prefixSumComputer.getIndexOf(offset).index; </del> <ins> return this._prefixSumComputer.getIndexOf(Math.trunc(offset)).index; </ins> } indexAfter(position: number): number {

Discussion:
Type: <bBug</b<!-- Please fill in all XXX markers --When I drag cell with mouse it moved to another position across other cells. Now it only works if I move my cell to the top of the file and only then will it be placed above the topmost cell. some cell in jupyter notebook it to another place it cell stays where it was before <!-- After creating the issue on GitHub, you can add screenshots and GIFs of what is happening. Consider tools like , or for GIF creation. --<!-- NOTE: Everything below except Python output panel is auto-generated; no editing required. Please do provide Python output panel. --- Python version (& distribution if applicable, e.g. Anaconda): 3.11.7 Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda Value of the setting: Default <details<summaryUser Settings</summary<p</p</detailsExtension version: 2024.2.0 VS Code version: Code 1.87.2 (, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0. Modes: Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2 <details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --
It just works now, after few updates
still doesn't work for me
using the newest version of VSCode and still doesnt work for me.
Yes, got the same effect again, it seems that it arbitrary stops and starts working
I have the same issue, on Ubuntu 22.04 - also it's annoying that vscode jupyter doesn't have the move cell up/down buttons. I use that all the time on the sagemaker studio version and it's much easier than using the mouse.
Please can you try the latest version of VS Code and let me know if this issue still persists. Try version 1.88 of VS Code, thank you.
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding!
I just updated vscode and all extensions to the latest version, but the problem still persists.

For clarity I've recorded the behavior I see on my Windows 10 pc, hope this might be helpful. Also as you can see I can move cells only to the top and bottom positions
your video looks exactly the same as I experience on Ubuntu 22.04
Your video looks exactly the same as I experience on Windows 11 in the latest version of vscode
I'm facing the same issue !
I had the same issue today. Fully updated: 1.88.1 Host: macOS 14.4 Devcontainer: Extensions (selected): Quarto, Ruff Notebook contents: Python, markdown, markdown cell with YAML (for Quarto) Other: I don't recall if I was at the time, but I was periodically doing a Quarto HTML preview. I was able to work around it with cut/paste keyboard shortcuts, but it would be great if it worked and even better if there were "move cell" buttons. I was simply trying to move a cell to just above the one that was then above it, and that seems like a common pattern for me.
Im having the same issue as well. Just cant use the mouse to move cells up and down. Im using Mac btw
I am also having this issue and am running up to date vscode on windows 11
Same issue Latest Windows. Latest version or VSC. This bug has been bugging me for months. On Mon, Apr 29, 2024 at 12:25 Donald Dominic Dill
I also can't move cells with mouse: Version: 1.89.1 (user setup) Commit: Date: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: Chromium: 120.0.6099.291 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.
Markdown cells seem to be draggable as I would expect. Code cells can only be dragged to the end of the file Code cells dragged to the beginning of the file create the blue line when dragged, but don't get moved when dropped.

Version: 1.89.1 Commit: Date: 2024-05-07T05:14:32.757Z Electron: 28.2.8 ElectronBuildId: Chromium: 120.0.6099.291 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0
same Version: 1.90.0 Commit: Date: 2024-06-04T19:43:07.605Z Electron: 29.4.0 ElectronBuildId: Chromium: 122.0.6261.156 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 5.10.0-30-amd64 ALT+up/down works though
Same ! Windows 11 and last version of Visual Studio Code: Version: 1.90.1 (user setup) Commit: Date: 2024-06-11T21:01:24.262Z Electron: 29.4.0 ElectronBuildId: Chromium: 122.0.6261.156 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.
On Mac as well Version: 1.90.1 Commit: Date: 2024-06-11T21:44:54.914Z Electron: 29.4.0 ElectronBuildId: Chromium: 122.0.6261.156 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0
Same Win 11 latest version of VSCode Version: 1.90.1 (user setup) Commit: Date: 2024-06-11T21:01:24.262Z Electron: 29.4.0 ElectronBuildId: Chromium: 122.0.6261.156 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0. The only way move code cells currently is to CUT/PASTE.
Same on MacOS
Windows 10 - still same issue.

Version: 1.92.2 (system setup) Commit: Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: Chromium: 124.0.6367.243 20.14.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.
Currently broken on Mac OS for me, I drag and drop the cell, there doesnt seem to be a target to drop it on. Cell doesnt move. Please bring back the buttons! Jupyter Extension v2024.7.0 Mac Apple M1 Pro Mac OS 14.6.1 Version: 1.92.2 Commit: Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: Chromium: 124.0.6367.243 20.14.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0
Please try the latest Insiders version of VS Code or please wait till the latest stable version of VS Code is shipped (some time today/tomorrow).