cmv-app icon indicating copy to clipboard operation
cmv-app copied to clipboard

Right-click on iOS devices

Open tr3vorm opened this issue 11 years ago • 7 comments

I have been testing the functionality on an iPhone and cannot find a way of getting the right-click menu to appear. Usually this is achieved by holding down, or double-tap.

Also, but less important, is that there is no equivalent of the mouse-follow event used in the mapinfo widget. This is probably not even practical/possible. The measurement tool gets around this by giving a position for both the current mouse position, as well as where the mouse is clicked (marker placed).

tr3vorm avatar Aug 26 '14 20:08 tr3vorm

We can look at using dojox/gesture: https://dojotoolkit.org/reference-guide/1.9/dojox/gesture.html see: http://jsfiddle.net/g00glen00b/L8Tp6/2 Does it work on iPads? (i see it works on android)

DavidSpriggs avatar Aug 27 '14 01:08 DavidSpriggs

I just checked on an Android device (4.1.2) using Chrome, and pressing and holding displays the menu as expected (i.e. right-click behavior). However, it did not working using the device's default browser.

The iPad behaves the same as the iPhone. Double-click is zoom in, holding down does nothing.

PS. As I said earlier, I don't think the "follow-event" is applicable for touch screens (IMHO) so we can ignore that. The right-click menu is required for the directions widget though.

tr3vorm avatar Aug 27 '14 02:08 tr3vorm

Directions works fine without the right click menu. All widgets will and do. The new version 1.2.0 also has links in the main UI to use your current location. I just tested in chrome for iOS and same result, no menu. For now the new options in Directions will work until we figure this out.

DavidSpriggs avatar Aug 27 '14 03:08 DavidSpriggs

Yes, I am on the most recent build (or 1.2 at least). My directions appeared not to be working (without the right-click) but I have found that was due to how addresses were entered - e.g. I need to use "Rd" instead of "Road" etc. I also have to use postcodes to avoid conflicts (this may be obvious to most people, but zip/post codes are not used as much in NZ as they are in more populous countries). I have created my own AGOL routing utility to cover our area.

tr3vorm avatar Aug 27 '14 03:08 tr3vorm

@tr3vorm, this not working with your Android device with the default browser is not surprising and is most likely due to the old version of the OS. I don't think that long tap or many other gestures were supported at that time. I believe the default browser prior to v4.3 (?) was based on a version of web-kit very similar to the one that Safari on iOS uses.

I tested the fiddle with Android v4.4.2, (almost the latest KitKat version) on a Samsung Galaxy S4 and an original Kindle Fire. The long-tap (tap.hold) does work using the default browser in that version of the OS. It also works with Chrome, Firefox and Opera as expected.

tmcgee avatar Aug 27 '14 15:08 tmcgee

@tr3vorm: Is this issue still occurring or can it be closed?

tmcgee avatar Jul 15 '15 23:07 tmcgee

@tmcgee I just tried this on an iPhone (iOS 8.4 and CMV 1.33) and I still cannot get the "right-click" menu to appear.

tr3vorm avatar Jul 16 '15 21:07 tr3vorm