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

Draggable not working on touch devices #18

Closed
anzeznidarsic opened this issue Oct 2, 2014 · 14 comments
Closed

Draggable not working on touch devices #18

anzeznidarsic opened this issue Oct 2, 2014 · 14 comments
Labels

Comments

@anzeznidarsic
Copy link

Draggable examples are not working on touch devices (tested on iOS 8)

@StephanWagner
Copy link
Owner

jBox has not been optimized for mobile devices yet, but it is on the todo list! I just have been incredibly busy past few weeks...

@vhornik
Copy link

vhornik commented Mar 10, 2015

Hi Stephan, jBox is great, but the touch support is really missing... any update on this?
Maybe it's not so difficult, I found this for example: http://grantm.github.io/jquery-udraggable/ seems pretty lightweight, could be combined somehow?

@StephanWagner
Copy link
Owner

Finally supported with version v0.8.0

@manukieli
Copy link

Hi, very good script, but I need ti use it for mobile devices and it doesn't work to.
I've try the version 1.0.6

@StephanWagner
Copy link
Owner

@manukieli With what device are you testing? I just tried it with iPhone and it did work.

@manukieli
Copy link

manukieli commented Nov 29, 2019

I've try it from my Samsung S8 (Android device) with chrome and from computer (windows 10) with Chrome and active the option of mobile device, both doesn't work
drag_from_mobile

@StephanWagner
Copy link
Owner

It does work on Chrome iPhone too. Unfortunately, I don't have an Android phone right now, but I'm reopening this issue. It can be reproduced when using the Crome dev tools.

@StephanWagner StephanWagner reopened this Nov 29, 2019
@Developer66
Copy link

Developer66 commented Mar 2, 2021

Scroll not working when dragable is true and drag is also not working on Android mobile devices. Is there anything new on this issue?

Testet on S8+, Tab 10 in Chrome and Samsung Browser

Thanks

@StephanWagner
Copy link
Owner

Just released v1.2.9 with some improvements that should fix draggable on mobile devices.

@StephanWagner
Copy link
Owner

StephanWagner commented Mar 2, 2021

Actually, use v1.2.10 or 1.2.11 as I published v1.2.9 wrongly

@StephanWagner
Copy link
Owner

I also fixed an issue that prevented the jBox from closing on mobile devices when dragging was set to title. Use from version v1.2.13. Tested on Chrome debugging tools and iPhone.

@Developer66
Copy link

Thanks for your work! Works now perfectly for Android mobile devices.

Some Problem still exist:
When Drag is enabled, the scroll is not working on mobile devices. Maybe it would be better to put the dragevent only on the titlebar?

Thanks

@StephanWagner
Copy link
Owner

Do you mean scrolling within the jBox or page scrolling?

You can set the option draggable to title, then only the title bar let's you drag the jBox. You could also pass a jQuery element that will trigger dragging. true will set the whole jBox to the draggable handler: https://stephanwagner.me/jBox/options#other-options

@Developer66
Copy link

I mean the scrolling in the jbox content.

With the option title it works perfect... I set draggable: true, but then the whole popup is draggable... with draggable: 'title', it is only the title... Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants