Live data from Hacker News

Tooltips need a delay, and then they need to skip it

blog.master.dev

61–70 of 92 posts

Re: Tooltips need a delay, and then they need to skip it

#61
post #45

Even with that fix, the UX is still broken on touchscreens ...

To bad apple abandoned force touch. Would be nice to drag your finger over the buttons to see the tooltips and push down harder to actually push the button. With haptic feedback of course so you feel the edge of the button, like the magic touchpad does for clicks.

Re: Tooltips need a delay, and then they need to skip it

#62

Earlier quoted context omitted.

>> Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. How is this different from the observation that, say, a non-magnetic iron ball may have more than one possible velocity in a given gravitional field, depending on whether it was recently thrown upward o…

Hysteresis is nonlinear.

And?

Re: Tooltips need a delay, and then they need to skip it

#63
post #54

Earlier quoted context omitted.

>> Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. How is this different from the observation that, say, a non-magnetic iron ball may have more than one possible velocity in a given gravitional field, depending on whether it was recently thrown upward o…

A ball dropped near the earth's surface will always fall towards the centre of the earth at ~9.81m/s^2 no matter what it has done previously. A chunk of iron put into a 1μT magnetic field will behave differently depending on what other magnetic fields it has been in recently.

> A ball dropped near the earth's surface will always fall towards the centre of the earth

How exactly does this address "whether it was recently thrown upward or dropped from above"?

A ball in a given location will do something unpredictable if you have no information about its past. Is that hysteresis?

Re: Tooltips need a delay, and then they need to skip it

#65
post #54

Earlier quoted context omitted.

A ball dropped near the earth's surface will always fall towards the centre of the earth at ~9.81m/s^2 no matter what it has done previously. A chunk of iron put into a 1μT magnetic field will behave differently depending on what other magnetic fields it has been in recently.

> A ball dropped near the earth's surface will always fall towards the centre of the earth How exactly does this address "whether it was recently thrown upward or dropped from above"? A ball in a given location will do something unpredictable if you have no information about its past. Is that hysteresis?

If it was recently thrown upward, it is either still travelling upwards away from the centre of the Earth, or it is falling downwards towards the centre of the Earth.

So its past is kind of irrelevant. At some point if nothing is supporting it, it will fall towards the centre of the Earth.

This is just high school physics.

Re: Tooltips need a delay, and then they need to skip it

#67
post #8

I think I would describe this as an example of hysteresis. Neat! https://en.wikipedia.org/wiki/Hysteresis

>> Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. How is this different from the observation that, say, a non-magnetic iron ball may have more than one possible velocity in a given gravitional field, depending on whether it was recently thrown upward o…

With the ball in the gravitational field the state of the system is entirely captured by the ball's position and velocity. With hysteresis there is some extra state in the system that also affects the behaviour. The general pattern you see is that if you push the system from state A to B, then from B back to A, then it will take a different path in each direction. (you can of course create mechanical systems that have this property as well, it's not specific to magnetic fields, its just that magnetic materials tend to have this kind of state-storage effect).

Re: Tooltips need a delay, and then they need to skip it

#68

Earlier quoted context omitted.

what did the JS provide that the CSS solve wasn't the only solve?

Not OP, but my guess is things like timing delay--20 years ago, CSS animations and transitions weren't a thing yet, especially since 20 years ago also puts us in the era of IE6 being a major browser.

Exactly. And on the browser front we had to contend with not only IE6, but IE5.5 on Mac, which was its own special beast.

Re: Tooltips need a delay, and then they need to skip it

#69
post #54

Earlier quoted context omitted.

A ball dropped near the earth's surface will always fall towards the centre of the earth at ~9.81m/s^2 no matter what it has done previously. A chunk of iron put into a 1μT magnetic field will behave differently depending on what other magnetic fields it has been in recently.

> A ball dropped near the earth's surface will always fall towards the centre of the earth How exactly does this address "whether it was recently thrown upward or dropped from above"? A ball in a given location will do something unpredictable if you have no information about its past. Is that hysteresis?

You don’t need information about its past. Everything you need to know to predict its future state is contained in its current position and velocity at the moment you measure it.

Re: Tooltips need a delay, and then they need to skip it

#70
post #2

I ran into the same problem about 20 years ago when implementing hover-based dropdown menus on a website. It was only about 10 lines of JS and a couple global variables but I was the only person who understood it. :-P (These days I would have included more comments.) Naturally, there was a fallback to pure CSS menus, because we weren't barbarians.

> only about 10 lines of JS

Ah, the good old days when we wrote JS function to do something, or copied from dHTMLZone. These days the first 10 lines of JS is loading hundreds of lines of JS libraries. (Yep, I'm an old man yelling at clouds!)

Post reply on HN