Giter Site home page Giter Site logo

angular2-swing-example's People

Contributors

ksachdeva avatar mashhoodr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular2-swing-example's Issues

Project don't run(yellow screen)

I clone the project, and did:

npm install
npm start

And the project don't work, only show a yellow screen and these errors on console:

GET http://localhost:3000/node_modules/core-js/client/shim.min.js 404 (Not Found)
zone.js:101 GET http://localhost:3000/node_modules/performance-now/lib/performance-now.js 404 (Not Found)
Error: Error: XHR error (404 Not Found) loading http://localhost:3000/node_modules/performance-now/lib/performance-now.js(โ€ฆ)

I did something wrong?

Thanks!

how to allow user to drag the card in left and right only not up and down

hi @ksachdeva please help

I add allowedDirections but it does not work


    this.stackConfig = {
            allowedDirections: [  Direction.LEFT, Direction.RIGHT],

      throwOutConfidence: (offsetX, offsetY, element) => {
        // console.log('throwOutConfidence',offsetX, offsetY,  element)
        return Math.min(Math.abs(offsetX) / (element.offsetWidth / 5), 1);
      },
      transform: (element, x, y, r) => {
        //         console.log('transform')
        this.onItemMove(element, x, y, r);
      },
      throwOutDistance: (d) => {
        //                   console.log('throwOutDistance')
        return 800;
      }
    };

swipe down

Is there any reason because of which swipe down cannot work?

Undefined Objects!

Hi,

When using this component I get some errors in the app.component.ts.

In line 51 - 59 there are some console.log calls, the first log results in an object. The second and third logs return undefined. This means the viewChild / viewChildren are not correctly returned. I cannot figure out why this is happening..

Can you please assist me with this problem?

Thanks,
Berry

ionic app slow gesture

Hello there !I am developing an ionic project and I've used angular2-swing library to build an app similar to tinder , I have all integrated and It's working fine , But the problem that I am facing is that the drag left and right are very slow and It's not very convenient.

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.