-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse cursor offset from dragged box by several inches #1975
Comments
Did you try making |
It didn't work |
Looks like I have the same issue with v1.4.4 |
I believe we also have this issue in our app and can also reproduce it on a demo example from React grid layout itself. Problem: When dragging, the cursor is not aligned with the resize handler sometimes. It happens when moving the cursor outside the drag and drop bounds, for example. But that does not seem to be the only case. Demo link: https://react-grid-layout.github.io/react-grid-layout/examples/1-basic.html Screen recordings: ResizeBug.mov |
I get this issue too. It happens when I move the cursor too fast or anytime I move the cursor outside the window. |
I am faceing same issue with "react-grid-layout": "^1.4.4" and next js 13.4.9 page dir. |
We are also experiencing this issue on our app with ^1.4.3 |
I'm facing this same problem. Before I implemented Redux into my app to manage the layout as a state, it was fine. but now that I'm using Redux, the offset occurs with multiple quick drags. it's not dramatic, but it's nowhere near as smooth/perfect as the demos I'm building an app in electron btw |
meet same problem with heavy data :( |
I have this problem on an Electron app too, and it happens even when the layout doesn't contain any heavy data when the dev tools are open. I can't reproduce it on CodeSandbox though. I also noticed the issue with heavy data, on a production build with the dev tools closed. Electron (v28, Chromium 120 - also tested on v30 with Chromium 124) CodeSandbox (Brave v1.65.122, Chromium 124) Steps to reproduce:
|
@Arkellys i met same problems, you can see the CPU will be really high when bug occus |
I think this issue is actually a duplicate of #2003, which contains useful information. |
same issue here occurs with dev tools open in chrome |
Describe the bug
React 18.0.2
@emotion/styled 11.10.5
@mui/icons-material 5.11.0
@mui/material 5.11.5
What I'm noticing is that for code like the below, when I click one of the GridItemWrappers, it properly is draggable and movable. However my mouse cursor is offset from the dragged box by several inches. Does anyone have any thoughts on what might be causing that and how to close the distance between mouse cursor and box?
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
The code is from a tutorial and works fine in a minimal page. Where it has issues is in a project that has a MUI theme, etc. Maybe there's something from the MUI theme or something else that is hurt by the inheritence.
The code:
Expected behavior
There should be a basic distance between mouse cursor and dragged item and not several inches.
react-grid-layout library version
1.4.2
Operating System Version
Windows
Browser
Chrome
Additional context
No response
Screenshots or Videos
No response
The text was updated successfully, but these errors were encountered: