-
Notifications
You must be signed in to change notification settings - Fork 740
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
iOS compatibility #83
Comments
I have never tried the context menu on a touch device. I'll look into it. |
I'm wondering how you got the menu to show. contextMenu itself doesn't know about touch events and the demos won't show a menu… |
Rodney- I was able to get the iOS working with the “Custom Activated Context Menu”, where you click the button. For some odd reason, I have also been able to get it to work on my full site, but I am trying to pull the code out to a sample page, and cannot get it working in a sample with the left click trigger. Jake Johnson/ Director of Development Direct: 402.905.2506 ext. 1014 / Fax: 866.889.4701 Toll Free: 877.309.0368 / Hours: M-F 8 AM-5:00 PM CST http://buildertrend.com/ Description: Description: Description: Description: Description: cid:[email protected] 11011 Q Street Ste 101B
http://www.buildertrend.com/ www.buildertrend.com http://www.facebook.com/buildertrend Description: Description: Description: Description: Description: cid:[email protected] http://twitter.com/#!/BuilderTREND Description: Description: Description: Description: Description: cid:[email protected]
From: Rodney Rehm [mailto:[email protected]] I'm wondering how you got the menu to show. contextMenu itself doesn't know about touch events and the demos won't show a menu… — |
Rodney- Without having to do the button click example, you can get the menu to open on iOS, by attaching the contextMenu to a selector on a html anchor control such as:
Where the liUsesContextMenu is the selector that you use. In that case, the context menu will appear and open on the iOS, it just doesn't respond to the click event. |
hi Rodney, |
Without having tested this theory, I figure the menu-item won't trigger, because it isn't selected (as there is neither hover, nor keyboard input). I'm aware of the problem but haven't investigated yet. |
Hey. Has anyone had any success with a workaround for this issue? Thanks |
supermild- I have not came up with a workaround. iOS support is a big deal for us, so I am keeping an eye out on this as well. |
I won't be able to look into this before Christmas. If anyone has ideas (even if they can't test themselves), shoot! |
I just got this via mail: I found a minor bug for this contextmenu running on Safari Mobile browser. Basically, the itemclick event is not triggered. It is most likely due to the following issue. Mobile Safari will only produce mouse events when the user taps on a clickable element, like a link. You can make an element clickable by adding an onClick event handler to it, even if that handler does nothing. http://sitr.us/2011/07/28/how-mobile-safari-emulates-mouse-events.html I made the following changes on line 939. var $t = $('<li class="context-menu-item ' + (item.className || "") +'" onClick="javascript:void(0);"></li>'), It is working fine now on Safari mobile. Hope this helps. Thanks again for your attention. Sincerely, |
Thanks Rodney and Brian. Excellent fix. I'm on V1.5.25. All good. |
so binding a void click event already does the job? sweet. |
great fix. thank you guys! |
This issue is not closed. I haven't resolved it in the actual contextMenu yet! |
Glad it helped. :) |
Hm, I'm testing this site: Is this some regression? Does this page work for you? |
Well, it's essentially the same issue. I added a dummy handler |
I have plugged the contextMenu into my site and I am trying to use it on the iPad. It is opening just fine, but when I click on an item, the callback method is not firing.
Do you have any suggestions?
The text was updated successfully, but these errors were encountered: