excessive / DOMy

A DOM-like GUI framework for the *awesome* LÖVE framework
Other
32 stars 2 forks source link

on_mouse_over #16

Closed SiENcE closed 9 years ago

SiENcE commented 9 years ago

If you wanna show tooltips this is important.

Only using enter and leave does not work in love2d, because they are only called when window is active.

karai17 commented 9 years ago

Can you elaborate more? Enter/leave are not love callbacks, they are custom functions that will constantly poll the element list using the mouse position. On Jan 16, 2015 9:56 AM, "Florian Fischer" notifications@github.com wrote:

If you wanna show tooltips this is important.

Only using enter and leave does not work in love2d, because they are only called when window is active.

— Reply to this email directly or view it on GitHub https://github.com/excessive/DOMinatrix/issues/16.

SiENcE commented 9 years ago

Think of window mode, if you go with mouse into an area and show a tooltip, but than switch of of the love2d window, than back, but mousecursor is now on a different position, you normally want to hide the tooltip now...but you can't because enter and leave it not called.

karai17 commented 9 years ago

That's a fair point. I'll be sure to add a basic hover callback, too.