docco icon indicating copy to clipboard operation
docco copied to clipboard

Make the "Jump To..." menu work on mobile (touch) devices

Open keithamus opened this issue 11 years ago • 2 comments

As per conversations from #110, the "Jump to..." menu does not work on touch devices.

At current, on Android, as soon as you touch your finger to the "Jump To" button, the menu shows but the first item begins behaving like a click event, and so a tap on the "Jump To" button just takes you to the first result in the menu.

The desired behaviour may be to make the jump to menu only work on click rather than on hover for ALL devices.

keithamus avatar Oct 29 '12 23:10 keithamus

Interesting report on the Android behavior. While working on #110, I had to fidget with the jump menu, to get it to work on my iOS mobile device.

The best mobile-compatible strategy would seem to be using some Javascript to listen to the proper events, but I worry about opening the door to having JS associated with Docco; once there is, I worry that we'll see a bunch of pull requests that attempt to add to it recklessly. That being said, if there was some JS associated with Docco, making a more complex template, e.g. one that properly supports recursive hierarchy outputs, would become much easier to grapple with. But I digress.

I don't own an Android based device, but I'll pull down the emulator and see if I can reproduce this.

justindujardin avatar Oct 30 '12 17:10 justindujardin

Any update on this? Does the current release of Docco work properly on this particular device, or no?

jashkenas avatar Mar 13 '13 04:03 jashkenas