skokenes / d3-lasso

A lasso plugin for d3
BSD 3-Clause "New" or "Revised" License
88 stars 35 forks source link

Mobile #3

Closed projecttiles closed 8 years ago

projecttiles commented 8 years ago

Hey skokenes,

I spent some of today fiddling with the new d3v4 + lasso code. I basically made some minor syntax adjustments and it works fluidly on my desktop. No more flickers/ unselected points in lasso!

However, it appears that the lasso (or perhaps just lasso_end) isn't working on mobile. I tested it in chrome on my Android phone, and my friend tested it using safari on her iPhone. The example in question is: http://bl.ocks.org/skokenes/a85800be6d89c76c1ca98493ae777572

To decribe in better detail what happens:

Sorry to post this so late, I only just started playing with the new code yesterday. Cheers,

-Ben

projecttiles commented 8 years ago

Here's a gif of what I'm referring to. Note the lack of a dotted line connecting the final drag-point to the initial drag-point. The lasso_end function also spouts a TypeError when trying to pull the color from the data, indicating that it's not able to access the data points in the lasso. This only occurs on mobile, with the exception of windows phones. mobilelassoerror

skokenes commented 8 years ago

Fixed in v0.0.5