Linus, why don't you link to some of your code so we can take a look. On Monday, June 23, 2014 3:02:41 PM UTC-4, Linus Ericsson wrote: > Thanks for IDidUpdate! That works, but... > > It turns out I cannot easily get the coordinates of the mouse or the element > where the mouse is. > > I solved my particular issue by using CSS :hover functionality instead. CSS > seems to get events whenever the layout is changed and can keep track of the > mouse pointer, and is a simpler solution overall. > > > > It's remarkable I cannot easily get the coordinates of the mouse whenever I > like, If I'm not aiming for severe CSS-hacks, like binary searching of the > screen with an absolute-positioned div looking for :hover-status or > something. I don't want to go there just yet. > > > > Thanks, > Linus > > > > > > > 2014-06-22 21:00 GMT+02:00 Roger Gilliar <[email protected]>: > > You may use the > > > > defprotocol IDidUpdate > > (did-update [this prev-props prev-state])) > > > > function. This one is called when React has rendered the component into the > DOM. This would allow you to get the mouse position and update the state. > > > > -- > > Note that posts from new members are moderated - please be patient with your > first post. > > --- > > You received this message because you are subscribed to the Google Groups > "ClojureScript" 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 http://groups.google.com/group/clojurescript.
-- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" 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 http://groups.google.com/group/clojurescript.
