taye

Joined 13 years ago

Karma
38
Submissions
23
Member since
Sep 30
Programmer · Visionary · Delicious

http://taye.me

View on Hacker News

Recent submissions

Comment · 12 years ago
Gah! Thanks for mentioning this. What browser did you try it with?
Comment · 12 years ago
I've never liked famo.us and never bothered to look into it so a rewrite for it won't happen (at least not by me). I'd like to think that if famo.us is any good then something like interact.js should be able to work with it without heavy modification or with a thin layer on top, but maybe I'm thinking too highly of my own work :-P.
Comment · 12 years ago
That's due to hardware acceleration so really Chrome is buggy. I don't really know what to do about that.
Comment · 12 years ago
Thanks for mentioning that. It's fixed now.
Comment · 12 years ago
My heart sunk a little, before the ellipsis. You're welcome!
Comment · 12 years ago
It's because of hardware acceleration something or other. I don't really know what to do about that :D. I saw the same thing on Chrome and Firefox on Windows until a few months ago. I don't have a Mac so... ¯\_(ツ)_/¯.
Comment · 12 years ago
Comment · 12 years ago
I think that that sort of thing would better done in a separate library. I've actually been thinking about doing it myself but I haven't had the time.
Comment · 12 years ago
Thanks! Unfortunately I've had only an Android tablet and Firefox OS phone to test the homepage extensively so I'm not surprised that the website has some usability problems on other devices and form factors.
Comment · 12 years ago
> When you drag no-drop over the yes-drop div it appears on top. If you then drag yes-drop and go back to dragging the no-drop this then appears under the yes-drop div.

This is because before dragging, there's no CSS transform style. After dragging the transformation causes the element to be rendered above its siblings. Then when the other element is transformed it is then rendered above. I've added

  transform: translate(0px, 0px);
to both elements to fix that.

> Also I don't get what causes the highlight of the drop zones to activate. Percentage of shape? Center of Shape? Personally I prefer that it is the mouse pointer that activates the enter / leave and not the shape itself.

It's mentioned in the JS code comments

  interact('.dropzone').dropzone({
      // only accept elements matching this CSS selector
      accept: '#yes-drop',
      // Require a 75% element overlap for a drop to be possible
      overlap: 0.75,
You could instead set overlap to "pointer".

> Added: If you drag the yes-drop from the side to enter the drop zones, the outer zone looks like 50 pixels wide and yet the error or margin to drop it in there is about 2 pixels before you enter the inner zone.

The deepest dropzone element in the DOM gets drop priority if the element/pointer is over multiple dropzones.

Comment · 12 years ago
Not presently. However, it's been on my mind for a while and as of now is priority numero uno.
Comment · 12 years ago
Thanks

I hadn't actually thought about the Mac touch-pad and unfortunately I don't have easy access to one for testing.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton