Stackoverflow reported as bug. http://stackoverflow.com/questions/38573214/openlayers-3-interaction-and-pointermove
Where should I open a bug? Em segunda-feira, 25 de julho de 2016 11:16:28 UTC-3, Marcos Oto Picarelli Prado escreveu: > > Hi, > > I'm trying to activate an interaction when the mouseover is inside some > feature. > > It is working so so... the problem is if you move your mouse slowly the > interaction keep active. > > Is it a bug on OL3, or should I do in a different way? > > Code: http://jsfiddle.net/gmaq54dm/3/ > olMap.on("pointermove", function (e) { > if (e.dragging) { > return; > } > var map = e.map; > console.log(e.pixel); > var feature = map.forEachFeatureAtPixel(e.pixel, function(feature, > layer) { > return feature; > }); > var hit = (feature) ? true : false; > console.log(hit); > olDraw.setActive(hit); > }); > > > Thanks > -- You received this message because you are subscribed to the Google Groups "OL3 Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ol3-dev. To view this discussion on the web visit https://groups.google.com/d/msgid/ol3-dev/f8e27d68-0f52-4442-8ee9-705ae1a7c8e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
