AFAIK it should be possible, by registering the x and y coordinates <http://www.quirksmode.org/mobile/tableViewport_desktop.html#link2> of the mousedown event, and comparing with the coordinates of the mouseup event. And maybe the timestamp as well. If both are sufficiently distant from the original ones, then the drag code should be executed, otherwise the click code should.
On Wednesday, August 26, 2015 at 1:52:55 AM UTC+1, Aaron Meurer wrote: > > There's probably a way we can make a selection not register as a click. > Any Javascript experts here? > > Aaron Meurer > > On Mon, Aug 24, 2015 at 5:37 PM, Sudhanshu Mishra <mrs...@gmail.com > <javascript:>> wrote: > >> Hi >> >> I like the idea. The live shell is useful in general but it would be a >> nice thing to have an additional button which copies the plain code from a >> particular box. >> >> > and after hiding it, I find myself on another place in the >> documentation. Yikes! >> >> This happens because the live shell tries to accommodate itself without >> covering text. >> >> Sudhanshu Mishra >> >> On Tue, Aug 25, 2015 at 2:30 AM, Nico <nico.sc...@gmail.com <javascript:> >> > wrote: >> >>> I've been using Sympy in the past few weeks more than ever before, and I >>> have to say it's been quite a nice experience. >>> >>> As a an almost-newcomer, the single most annoying thing was that you >>> can't copy-and-paste code from the website. Every time I select code from >>> the documentation on [1], the live shell opens with seemingly unrelated >>> code ("I didn't ask for this!"), and after hiding it, I find myself on >>> another place in the documentation. Yikes! >>> >>> Other than that great work. I particularly appreciate the helpfulness of >>> this "mailing list". >>> >>> Cheers, >>> Nico >>> >>> >>> [1] http://docs.sympy.org/ >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "sympy" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to sympy+un...@googlegroups.com <javascript:>. >>> To post to this group, send email to sy...@googlegroups.com >>> <javascript:>. >>> Visit this group at http://groups.google.com/group/sympy. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/sympy/58147b7b-8128-4346-a2cd-5b465777fb42%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/sympy/58147b7b-8128-4346-a2cd-5b465777fb42%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sympy+un...@googlegroups.com <javascript:>. >> To post to this group, send email to sy...@googlegroups.com <javascript:> >> . >> Visit this group at http://groups.google.com/group/sympy. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/CAFW_KCRoYhpGcdO_jKhRUAhtVrktqKDEaLBQZthP3hHCd0MqcQ%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/sympy/CAFW_KCRoYhpGcdO_jKhRUAhtVrktqKDEaLBQZthP3hHCd0MqcQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/95279a40-ccd8-4a21-9799-f1bad239ca84%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.