News for hackers. Stuff that matters.
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by andrewingram on Wednesday April 06, 2016 @02:51PM (#11440873)
I've actually been looking for something that goes the other way. The main issue i've had with Tether and React is that Tether does too much. I don't want a lib that manipulates the DOM itself, I want a overlay positioning engine that I can use to position an element (much like Popper and Tether), but that leaves the positioning up to me (ie let React keep full control of the DOM). Obviously i'd need to subscribe to position updates too, for scroll and resize (and any other) events. I tried to do this using Tether as a starting point, but it was a painful experience trying to to untangle its code.

When I talk about engines, I mean things like Zynga's Scroller (https://github.com/zynga/scroller), essentially a purely logical set of functionality that doesn't assume a particular view-level implementation.

Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by FezVrasta on Wednesday April 06, 2016 @03:21PM (#11441141)
This is exactly the direction I want to take with Popper.js!! The part that sets the style to the DOM will soon be moved to a modifier/plugin so that it can be disabled and replaced with a modifier which just exports the coordinates.
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by andrewingram on Wednesday April 06, 2016 @07:57PM (#11443407)
That sounds promising. So conceptually you'd end up with something like popper-engine and popper?
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by FezVrasta on Thursday April 07, 2016 @01:34AM (#11444945)
Yup something similar
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by FezVrasta on Thursday April 07, 2016 @09:37AM (#11447110)
Please checkout this PR for React support https://github.com/FezVrasta/popper.js/pull/11
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by huula on Thursday April 07, 2016 @03:38AM (#11445428)
Totally understand your pain. Did you try https://huu.la? It never messes up with the user's page DOMs and you don't even need to write code to use it.
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by FezVrasta on Thursday April 07, 2016 @05:11AM (#11445856)
May you avoid spam please?
Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by huula on Thursday April 07, 2016 @01:10PM (#11448851)
Hey man, take it easy ;)

Huula does solve the problem the user is facing, so by any means, this is not spam at all.

And BTW, we are targeting different segments. You want to serve developers, I want to serve non-tech person, like HRs, Operations, etc. So technically, we are not competitors!

Re:Show HN: Popper.js, a 3KB library to manage tooltips and ... by FezVrasta on Thursday April 07, 2016 @03:55PM (#11450124)
It's just a question of respect