ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.04k stars 1.2k forks source link

Can't disable drag and drop on mobile browsers #586

Open nahuel1989 opened 7 years ago

nahuel1989 commented 7 years ago

Hi, I'm initializing the object with the following code:

gridster = $(".gridster ul").gridster({ widget_base_dimensions: ['auto', base], autogenerate_stylesheet: true, min_cols: 3, max_cols: 3, extra_cols:0, extra_rows:0, widget_margins: [5, 5], avoid_overlapped_widgets: false, resize: { enabled: false } }).data('gridster').disable(); $('.gridster ul').css({'padding': '0'});

But i'm still can drag and drop widgets on mobile browser (Tested on samsung device with default and chrome browser).

Any idea?

eldyvoon commented 7 years ago

You can try setting this

draggable: {ignore_dragging: true},

Cherie-S commented 5 years ago

It did works. Thanks! @eldyvoon