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

Skip to content

toggle ui-draggable-handle class with draggable #275

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

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

zspitzer
Copy link
Contributor

@zspitzer zspitzer commented Nov 6, 2015

On touch devices, it's not possible to scroll a page by dragging on an item even when draggable is
disabled due to the ui-draggable-handle class which is added to the grid-stack-item-content

JQuery-UI Draggable doesn't remove this class when it's disabled, so it prevents touch scrolling the page on the item

<div class="grid-stack-item-content ui-draggable-handle">

.ui-draggable-handle {
    -ms-touch-action: none;
    touch-action: none;
}

On touch devices, it's not possible to scroll a page by dragging on an item even when draggable is
disabled due to the **ui-draggable-handle** class which is added to the **grid-stack-item-content**

JQuery-UI Draggable doesn't remove this class when it's disabled, so it prevents touch scrolling the page on the item

```
<div class="grid-stack-item-content ui-draggable-handle">

.ui-draggable-handle {
    -ms-touch-action: none;
    touch-action: none;
}
```
@zspitzer
Copy link
Contributor Author

zspitzer commented Nov 6, 2015

I have filed a bug about this with JQuery-UI http://bugs.jqueryui.com/ticket/14779

troolee added a commit that referenced this pull request Feb 9, 2016
toggle ui-draggable-handle class with draggable
@troolee troolee merged commit 9237ae7 into gridstack:master Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants