GithubHelp home page GithubHelp logo

Touch Gremlins about gremlins.js HOT 12 CLOSED

jtangelder avatar jtangelder commented on May 2, 2024
Touch Gremlins

from gremlins.js.

Comments (12)

fzaninotto avatar fzaninotto commented on May 2, 2024

Awesome!

Would you like to work on a new gremlin species using your lib as a dependency?

from gremlins.js.

jtangelder avatar jtangelder commented on May 2, 2024

I might take a look at this, but don't expect it to be in a short term...

from gremlins.js.

vaughnroyko avatar vaughnroyko commented on May 2, 2024

Would really love this as well!

from gremlins.js.

jtangelder avatar jtangelder commented on May 2, 2024

I don't see it in the docs, but a callback after each gremlin might be interesting. the callback should send the gremlin's event settings, like xy position, target element, but also what kind of gesture, rotation and scale was done by the gremlin...

from gremlins.js.

fzaninotto avatar fzaninotto commented on May 2, 2024

Asynchronous gremlins is already implemented, see https://github.com/marmelab/gremlins.js/blob/master/src/main.js#L57

from gremlins.js.

fzaninotto avatar fzaninotto commented on May 2, 2024

Also, getting details about what gremlins did is the purpose of the logger, which can be injected to gremlins (see for instance https://github.com/marmelab/gremlins.js/blob/master/src/species/clicker.js#L128)

from gremlins.js.

FloNeu avatar FloNeu commented on May 2, 2024

+1 ( BTW great work guys )

from gremlins.js.

jtangelder avatar jtangelder commented on May 2, 2024

I am currently working on it in my fork, demo is over here.
https://rawgithub.com/jtangelder/gremlins.js/master/examples/basic/index.html

Works already a bit, now have to find out if all the properties (rotation, direction angle, scaling) is calculated as it should. But already looks cool!

from gremlins.js.

FloNeu avatar FloNeu commented on May 2, 2024

Already looks awesome... looking forward to use this gremlin myself...

from gremlins.js.

jtangelder avatar jtangelder commented on May 2, 2024

Well, i got it working, the basics. I thought i was almost done, but then i thought about the whole math aspect of rotation and scaling, and i should implement something like transform matrixes etc. My math doesn't isn't that good, maybe somebody can help?
https://github.com/jtangelder/gremlins.js/blob/master/src/species/toucher.js

The basics work, so the Gremlin is already usable, the only thing is that the Gremlin gesture settings aren't correctly applied to the touches that are triggered.
https://rawgithub.com/jtangelder/gremlins.js/master/examples/touch/index.html

from gremlins.js.

jtangelder avatar jtangelder commented on May 2, 2024

Fixed it, and was easier then i thought. What a fresh view can do... :-)

from gremlins.js.

fzaninotto avatar fzaninotto commented on May 2, 2024

Fixed in #56

from gremlins.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.