Skip to content
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

Touch devices problems #444

Closed
dell640 opened this issue May 5, 2016 · 9 comments
Closed

Touch devices problems #444

dell640 opened this issue May 5, 2016 · 9 comments

Comments

@dell640
Copy link

dell640 commented May 5, 2016

I found few quickly closed issues in github history, anyway:
Adding TouchPunch does not work, even your demo page here:
http://troolee.github.io/gridstack.js/
which has added TouchPunch lib does not work on any of my touch devices (not in one column mode).

Why you not prepare one single demo for touch devices? (there is no working demo online)
I spend many hours of trying (and reading your touch manual) and it still not work.

(my try is here http://hhh.imasik.cz)
Thx for your time

@troolee
Copy link
Member

troolee commented May 6, 2016

What device do you have? It's working fine on my iphone.

@troolee
Copy link
Member

troolee commented May 6, 2016

Recorded from the phone (not emulator): https://youtu.be/hE3Fq9aI7kU

@dell640
Copy link
Author

dell640 commented May 6, 2016

Actually trying:
"Lenovo Miix3 - Microsoft Edge"
"Samsung S7 - Chrome, Default browser"
No one works.

...Now when you posted video, i tried Firefox on Lenovo Miix and there it really works. So its just problem of browsers and touch-punch.
Thank you for your time (video). Really appreciate it.

@dell640
Copy link
Author

dell640 commented May 10, 2016

Hey again. Final solution for all Android/Microsoft touch browsers that i tested is:
-Remove touch-punch lib
-Add jquery.ui.touch lib (https://www.npmjs.com/package/jquery.ui.touch)
-Add handling for all "touchable" elements:
$('.grid-stack').addTouch();
-To support Microsoft Edge browser, you have to disable default Microsoft touch handling in CSS:
$('.grid-stack').css("touch-action", "none");

This works on Android and Windows Touch devices (no idea if it works on iOS) :)

@jun1432
Copy link

jun1432 commented Oct 9, 2018

I just stumbled on this issue. I can confirm that it doesn't work on iphone 6 iOS 12.0.1

@hadasnet
Copy link

Hey again. Final solution for all Android/Microsoft touch browsers that i tested is:
-Remove touch-punch lib
-Add jquery.ui.touch lib (https://www.npmjs.com/package/jquery.ui.touch)
-Add handling for all "touchable" elements:
$('.grid-stack').addTouch();
-To support Microsoft Edge browser, you have to disable default Microsoft touch handling in CSS:
$('.grid-stack').css("touch-action", "none");

This works on Android and Windows Touch devices (no idea if it works on iOS) :)

Hey, can you please upload the code for this to codepen or jsffidle or any other ? please --> http://hhh.imasik.cz

@vlory73
Copy link

vlory73 commented Aug 21, 2019

I can confirm that the grid from link http://hhh.imasik.cz is working on iOS

@Lueton
Copy link

Lueton commented Sep 4, 2020

I can confirm that it doesn't work on ms surface pro

adumesny added a commit to adumesny/gridstack.js that referenced this issue Jan 25, 2021
* fix gridstack#1413 gridstack#444
* we are now using the latest v1.0.8 touch-punch branch from
https://github.com/RWAP/jquery-ui-touch-punch
and compiling in JQ version (only 188k -> 190k) so mobiles work out of the box
* HTML5 v3+ does not currently support `touchmove` events. This will be added in a future release.
* added a mobile.html demo showing usage, updated doc/readme
@riccardolardi
Copy link

riccardolardi commented Apr 13, 2021

@adumesny I'm having a touch screen issue with Hannspree HT225. The "Basic Demo" on www.gridstackjs.com DOES WORK but I cannot get my own one to work. I just can't drag or resize the cells. The same happens with the grid posted above at http://hhh.imasik.cz - dragging and resizing won't work. What is the secret on the "Basic Demo" grid on gridstackjs.com?

EDIT: I found out I had to use the gridstack-dd-jqueryui intead of html5

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

No branches or pull requests

7 participants