[OpenLayers-Users] mixed touch and mouse events

Tomek Sniadach tomek.sniadach at gmail.com
Tue Dec 10 00:59:34 PST 2013


Hi,
thanks a lot. For the first look it seems to work.

Greetings
Tomek


2013/12/6 Xavier Mamano (jorix) <xavier.mamano at gmail.com>

> Hi,
>
> Yes, it is a behavior caused by OL, if I remember correctly is to solve a
> problem using Android.
>
> You can try to declare this before your code.
>
> OpenLayers.Handler.prototype.startTouch = function() {};
> OpenLayers.Handler.Click.prototype.startTouch = function() {};
> OpenLayers.Handler.Drag.prototype.startTouch = function() {};
> OpenLayers.Handler.Feature.prototype.startTouch = function() {};
> OpenLayers.Handler.Point.prototype.startTouch = function() {};
> OpenLayers.Handler.Path.prototype.startTouch = function() {};
> OpenLayers.Handler.Polygon.prototype.startTouch = function() {};
> OpenLayers.Handler.Box.prototype.startTouch = function() {};
>
> I have not tried, and do not know if cause undesirable side effects.
>
> Xavier
>
>
> Tomek Sniadach wrote
> > Hi,
> > i have an motionpc, that has a touch screen and I can use a mouse.
> > My problem is, that, when I use my fingers to navigate, after that the
> > mouse doesn't work any more.
> > When I use only the mouse or only the pen (there is als a pan) or only my
> > fingers, no problem. I can also mix pen and mouse, but after using touch
> > with fingers the other inputs does not work properly.
> > Ohh, this happens only in Chrome. Firefox and IE work fine, but I need
> > chrome for some other reasons.
> > It happens also in the openlayers example:
> >
> http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/mobile-navigation.html
> >
> > Has someone an idea?
> >
> > Thanks and regards
> > Tomek
> >
> > _______________________________________________
> > Users mailing list
>
> > Users at .osgeo
>
> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/mixed-touch-and-mouse-events-tp5092860p5093089.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131210/7e308491/attachment.html>


More information about the Users mailing list