yy20111011659 / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

Drag and drop marker doesn't work on markers with small images #125

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a marker
2. Set image to thin image (4-5 pixels)
3. Try to drag it horizonatally and with speed a little bit above normal.

What is the expected output? 

Marker should be dragged smoothly all the way from one point to another.

What do you see instead?

Marker is dragged for a short distance and after that it is dropped and map 
scrolls instead

What subversion release are you using? Does the behavior occur on the
simulator, a real iPhone/iPod Touch, or both?

0.5, it happens both on the device and simulator.

It seems to be a problem of how touches are handled. Right now, when 
touch moves, route-me checks if there is a marker layer on new position. If 
there is something - corresponding marker is notified about move.

And when we have a thin or short image - delta between previous position 
and current position can be bigger than corresponding image dimension. 
So route-me doesn't find any marker on the new position and doesn't 
notify marker about move.

I expect, it should handle drag'n'drop absolutely separately and then d'n'd 
started it should remember marker on which it started and move it until 
touch cancel/touch exit occurs or until any other touch detected.

Original issue reported on code.google.com by valerii....@gmail.com on 26 Dec 2009 at 8:42

GoogleCodeExporter commented 8 years ago
i have the same problem. any solution??

Thanks

Original comment by saimon...@gmail.com on 11 Feb 2011 at 4:21

GoogleCodeExporter commented 8 years ago
Please see comments at the new tracker, 
https://github.com/route-me/route-me/issues/issue/36/#comment_763466

Original comment by michael@tyson.id.au on 11 Feb 2011 at 5:13