Comments (2)
I roughly figured out the cause of the bug: at the dragging stage, an engine method is called, which adds a pseudo node to draw the future place for insertion. If you quickly move the mouse, a situation arises when nodes are added to the engine that should not be there. When a pseudo element is deleted, another method restores the original nodes, and there are duplicates in the original nodes. That is, the reason is the false filling of the original nodes.
https://github.com/gridstack/gridstack.js/blob/master/src/gridstack.ts#L2038
from gridstack.js.
I think I managed to solve the problem. As you can see in pr, when quickly dragging, node
does not appear:
And I don’t delete gridstackNode
so that the engine’s addNode
method works correctly and the duplicate is detected correctly.
from gridstack.js.
Related Issues (20)
- Change disableResize and disableDrag on Angular on user interaction HOT 3
- Change disableResize and disableDrag on Angular on user interaction HOT 4
- [Bug] Can't use disableDrag, disableResize props in Angular HOT 2
- `dist` folder is missing from both repo and releases HOT 1
- IOS auto scrolling doesn't work HOT 2
- [BUG] Dragging a widget into the grid doesn't honour expected aspect ratio HOT 2
- Any way to flip the direction of the board? HOT 1
- [Bug] After load(), in some cases the Y position is determined incorrectly & sizes are not restored. HOT 11
- Gridstack in WordPress editor (Gutenberg) mobile preview iframe not working. HOT 4
- Change event not firing on nested grids (resize, move...) HOT 1
- Angular wrapper doesnt have fitToContent option HOT 2
- Demo for lit is not working (https://gridstackjs.com/demo/web-comp.html)
- Responsive grids don't render items with minW correctly on resize HOT 3
- Custom drag element of type button doesn't work HOT 1
- Responsive grid coordinates system is inconsistent HOT 3
- Scale & Different Resolution Question HOT 5
- Unable to set max grid height HOT 1
- How to use Angular library (like PrimeNg) components in gridstack
- GridStack's draggable option doesn't behave as expected when using Vue Rendering Grid Item Content HOT 4
- Updating DOM stack elements within the captured change event are not reflected. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridstack.js.