Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbe9a08

Browse files
committed
improve touch support
1 parent 206616a commit bbe9a08

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ $(function () {
5151

5252
## Options
5353

54+
- `always_show_resize_handle` - if `true` the resizing handles are shown even the user is not hovering over the widget
55+
(default: `false`)
5456
- `animate` - turns animation on (default: `false`)
5557
- `auto` - if `false` it tells to do not initialize existing items (default: `true`)
5658
- `cell_height` - one cell height (default: `60`)
@@ -251,6 +253,22 @@ Sorts array of nodes
251253
- `dir` - `1` for asc, `-1` for desc
252254
- `width` - width of the grid. If `undefined` the width will be calculated automatically.
253255

256+
## Touch devices support
257+
258+
Please use (jQuery UI Touch Punch)[https://github.com/furf/jquery-ui-touch-punch] to make jQuery UI Draggable/Resizable
259+
working on touch-based devices.
260+
261+
Also `always_show_resize_handle` option may be useful:
262+
263+
```javascript
264+
$(function () {
265+
var options = {
266+
always_show_resize_handle: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
267+
};
268+
$('.grid-stack').gridstack(options);
269+
});
270+
```
271+
254272
## Use with knockout.js
255273

256274
```javascript
@@ -339,6 +357,11 @@ and so on.
339357
Changes
340358
=======
341359

360+
#### v0.2.3 (currently development version)
361+
362+
- improved touch devices support
363+
- add `always_show_resize_handle` option
364+
342365
#### v0.2.2 (2014-12-23)
343366

344367
- fix grid initialization

dist/gridstack.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)