[OpenLayers-Dev] Make short taps/clicks distinguishable from
taphold/clickhold events in Handler.Click
Tim Schaub
tschaub at opengeo.org
Wed Oct 26 16:33:22 EDT 2011
Looks very useful to me Marc. And the changesets look reasonable at a glance.
I understand your requirements might be different, but don't people
typically respond to the "hold" before "mouseup" (or equivalent)?
Tim
On Thu, Oct 20, 2011 at 4:10 AM, Marc Jansen <jansen at terrestris.de> wrote:
> Hi all,
>
> we have currently the need to determine whether a captured click/tap on an
> OpenLayers.Map was a short click/tap or was intended to be a "hold"
> click/tap (One that lasted at the same location for a certain amount of
> time).
>
> I have working code in a sandbox [1] that shows what is intented behaviour
> and also has a first rough implementation. My changes are the following
> three changesets: [2], [3] & [4]. Here is an online example: [5]
>
> How would you address this feature request? The code in the sandbox has no
> new/adjusted tests yet.
>
> I would love to hear whether this may be of need to the library as such, in
> that case I would spend more time on finishing this task to create a
> reviewable patch (e.g. tests, more documentation).
>
> Best regards,
> Marc
>
> [1] http://dev.openlayers.org/sandbox/marcjansen/hold/ &
> http://svn.openlayers.org/sandbox/marcjansen/hold/
> [2] http://trac.osgeo.org/openlayers/changeset/12430
> [3] http://trac.osgeo.org/openlayers/changeset/12431
> [4] http://trac.osgeo.org/openlayers/changeset/12432
> [5]
> http://dev.openlayers.org/sandbox/marcjansen/hold/examples/mobile-hold.html
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
--
Tim Schaub
OpenGeo http://opengeo.org/
Expert service straight from the developers.
More information about the Dev
mailing list