Comments (4)
Same here! I can't upgrade to the latest version because it completely breaks the drag/collision handling on my dashboards.
from gridster.js.
Seems like I've found the piece of code that causes this issue. The bug got introduced with bug fix #43 from @mmontero that got merged a few days ago.
There must be something wrong with the calculation of the y-units (cellsToMove
) in method on_stop_drag
:
// get number of cells to move
var destinyRow = this.placeholder_grid_data.row + this.placeholder_grid_data.size_y;
var currentOverlappedRow = parseInt(this.gridmap[tcol][trow][0].getAttribute('data-row'));
var cellsToMove = destinyRow - currentOverlappedRow;
this.move_widget_down(this.is_widget(tcol, trow), cellsToMove);
If I replace cellsToMove
with this.placeholder_grid_data.size_y
everything works again as it did before the change. Unfortunately I don't really understand what is being done here so it'd be great if the user who made the original pull request could fix this.
from gridster.js.
I'm also experiencing this issue. Drag is completely unusable in my app after switching to this dsmorse fork for responsiveness. I applied the fix above, but dragging is still slow, buggy, and unusable.
from gridster.js.
Same here! In the version 0.6.9 it works properly.
from gridster.js.
Related Issues (20)
- Not able to drag and drop widgets even if there is space available
- When i remove widget so drag and drop fetaure are not working HOT 1
- gridster height auto
- Can gridster prevent link clicks while dragging? HOT 2
- draggable handle doesnt work as expected. HOT 1
- BUG: avoid_overlapped_widgets and collision wait_for_mouseup false fails
- FEATURE REQUEST: Resize only certain items HOT 2
- BUG: resize specific axes 'x' does not work (grid crashes)
- Is this project abandoned?
- BUG: Destroy() and re-intialize fails to allow draggable HOT 1
- Widget are floating on top of another widgets when we change the machine scaling and zoom Out browser
- BUG: Using add_widgets dont allow resizing until page refresh HOT 1
- shift_widgets_up not working, also add shift_widgets_left
- CSS Grid API
- Bower 0.8.0
- Static elements get pushed away by another element being resized
- Nothing
- jQuery.fn.bind() is deprecated in Gridster.js
- How to implement drag-and-drop from a list of items outside the layout?
- Dynamically loading 2 (or more) grids isn't working HOT 1
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 gridster.js.