michalgm / state_dem

Oil Change International State DEM Project
1 stars 0 forks source link

Clicking on node label doesn't seem to trigger selection and zoom #40

Closed skyebend closed 11 years ago

skyebend commented 11 years ago

Couldn't figure out why sometimes I'd click on a node and nothing would happen, then would move about a pixel and it would work. Looks like the node label is eating the click event ('tho it does show mouseover). Seems to do it even when label is not visible (zoomed out)

skyebend commented 11 years ago

wait! I take it back! It may be the tooltip div, not the label that is causing this (click and nothing happens) behavior

michalgm commented 11 years ago

Yeah. I was noticing that too. I think it's something to do with the css hack to get the arrows. Since the tooltips have those nice arrows, maybe we want to have them show fixed to the center of the now rather than floating with the mouse.

-----Original Message----- From: Skye Bender-deMoll notifications@github.com To: michalgm/state_dem state_dem@noreply.github.com Sent: Mon, 29 Jul 2013 4:39 PM Subject: Re: [state_dem] Clicking on node label doesn't seem to trigger selection and zoom (#40)

wait! I take it back! It may be the tooltip div, not the label that is causing this (click and nothing happens) behavior


Reply to this email directly or view it on GitHub: https://github.com/michalgm/state_dem/issues/40#issuecomment-21759952

michalgm commented 11 years ago

Ok - I've fixed this by adding a click handler to the tooltip to trigger a click on the current node