Live data from Hacker News

Interact.js – drag and drop, resizing and multi-touch gestures

github.com

21–30 of 37 posts

Re: Interact.js – drag and drop, resizing and multi-touch gestures

#21

Looks really nice and worked really well in my S5. The one issue I had was with the multi-touch rotation example, you're not able to touch and scroll up with your fingers if you touch in the background. The resizing example isn't as bad but doesn't seem to register the first time you touch+drag either.

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.

Re: Interact.js – drag and drop, resizing and multi-touch gestures

#22
post #14

Well done!! The only thing that is missing and that I really need is the grid layout support, but animations are really light and smooth!

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.

Re: Interact.js – drag and drop, resizing and multi-touch gestures

#23

Great job. It seems like a subset of jquery functionality? Is there something that interact.js does that jquery doesn't? Or is it just a size thing...

Thank you.

I wouldn't call it a subset and I didn't make it as an alternative to jQuery UI. However, I do have plans to make one ;-). I think that the advantage is in what interact.js doesn't do. It's more about providing the data that applications need for responding to pointer input however they like - Drag and drop is just one way to use the input data.

I wrote about the ideas behind it on the Mozilla Hacks blog recently: https://hacks.mozilla.org/2014/11/interact-js-for-drag-and-d...

Re: Interact.js – drag and drop, resizing and multi-touch gestures

#24

On Chrome on Mac the dragging to the left leaves a trail behind, which goes away when finished.

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... ¯\_(ツ)_/¯.

Re: Interact.js – drag and drop, resizing and multi-touch gestures

#27

On Chrome on Mac the dragging to the left leaves a trail behind, which goes away when finished.

Same on Safari, besides the fonts “flash” when animations start/stop.

http://i.imgur.com/9DCsEZg.jpg

Hardware acceleration on browsers is still complicated.

Post reply on HN